From owner-svn-ports-all@FreeBSD.ORG Wed Nov 20 12:43:30 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4502ADE7; Wed, 20 Nov 2013 12:43:30 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3525727F1; Wed, 20 Nov 2013 12:43:30 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rAKChU9V093569; Wed, 20 Nov 2013 12:43:30 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rAKChUaf093568; Wed, 20 Nov 2013 12:43:30 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201311201243.rAKChUaf093568@svn.freebsd.org> From: Baptiste Daroussin Date: Wed, 20 Nov 2013 12:43:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r334411 - head/Mk/Uses X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Nov 2013 12:43:30 -0000 Author: bapt Date: Wed Nov 20 12:43:29 2013 New Revision: 334411 URL: http://svnweb.freebsd.org/changeset/ports/334411 Log: Define the target in post section. Remove the PHONY kmod-pre-install target and replace it with a real file target (well directory in this case) Approved by: rene Modified: head/Mk/Uses/kmod.mk Modified: head/Mk/Uses/kmod.mk ============================================================================== --- head/Mk/Uses/kmod.mk Wed Nov 20 12:41:39 2013 (r334410) +++ head/Mk/Uses/kmod.mk Wed Nov 20 12:43:29 2013 (r334411) @@ -11,6 +11,8 @@ .if !defined(_INCLUDE_USES_KMOD_MK) _INCLUDE_USES_KMOD_MK= yes +_USES_POST= kmod + .if defined(kmod_ARGS) IGNORE= USES=kmod takes no arguments .endif @@ -33,15 +35,16 @@ MAKE_ENV+= KMODDIR="${KMODDIR}" SYSDIR=" MAKE_ENV+= NO_XREF=yes .endif -.PHONY: kmod-preinstall kmod-post-install -pre-install: kmod-pre-install -kmod-pre-install: -.if defined(NO_STAGE) - ${MKDIR} ${KMODDIR} -.else - ${MKDIR} ${STAGEDIR}${KMODDIR} .endif +.if defined(_POSTMKINCLUDED) && !defined(_INCLUDE_USES_KMOD_POST_MK) +_INCLUDE_USES_KMOD_POST_MK= yes + +.PHONY: kmod-post-install +pre-install: ${STAGEDIR}${KMODDIR} +${STAGEDIR}${KMODDIR}: + ${MKDIR} ${.TARGET} + post-install: kmod-post-install kmod-post-install: ${ECHO_CMD} "@exec /usr/sbin/kldxref ${KMODDIR}" >> ${TMPPLIST}