diff options
author | jkh <jkh@FreeBSD.org> | 1994-11-15 10:16:56 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1994-11-15 10:16:56 +0000 |
commit | 8cdad68b06b762e090da4ef243a8cc71c332909c (patch) | |
tree | 06078ba4990707731bf3f60ac25b64b960fc73ef /share | |
parent | 32a984123c2e37e0af29488d107141f166f6804c (diff) | |
download | FreeBSD-src-8cdad68b06b762e090da4ef243a8cc71c332909c.zip FreeBSD-src-8cdad68b06b762e090da4ef243a8cc71c332909c.tar.gz |
Make depends a separate target. Now you can select when the dependency
list is traversed.
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.port.mk | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk index ab6d168..7116ad8 100644 --- a/share/mk/bsd.port.mk +++ b/share/mk/bsd.port.mk @@ -3,7 +3,7 @@ # bsd.port.mk - 940820 Jordan K. Hubbard. # This file is in the public domain. # -# $Id: bsd.port.mk,v 1.64 1994/11/03 19:53:46 jkh Exp $ +# $Id: bsd.port.mk,v 1.65 1994/11/11 09:45:33 jkh Exp $ # # Please view me with 4 column tabs! @@ -280,16 +280,8 @@ package: pre-package fi .endif -.if !target(pre-build) -pre-build: - @${DO_NADA} -.endif - -.if !target(build) -build: configure pre-build ${BUILD_COOKIE} - -${BUILD_COOKIE}: - @echo "===> Building for ${DISTNAME}" +.if !target(depends) +depends: .if defined(DEPENDS) @echo "===> ${DISTNAME} depends on: ${DEPENDS}" .if !defined(NO_DEPENDS) @@ -304,6 +296,18 @@ ${BUILD_COOKIE}: @echo "===> Returning to build of ${DISTNAME}" .endif .endif +.endif + +.if !target(pre-build) +pre-build: + @${DO_NADA} +.endif + +.if !target(build) +build: configure pre-build depends ${BUILD_COOKIE} + +${BUILD_COOKIE}: + @echo "===> Building for ${DISTNAME}" .if defined(USE_GMAKE) @(cd ${WRKSRC}; ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET}) .else defined(USE_GMAKE) |