mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 23:19:00 +00:00
Make depends a separate target. Now you can select when the dependency
list is traversed.
This commit is contained in:
parent
5dab37e2b3
commit
041c2641f1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4493
@ -3,7 +3,7 @@
|
|||||||
# bsd.port.mk - 940820 Jordan K. Hubbard.
|
# bsd.port.mk - 940820 Jordan K. Hubbard.
|
||||||
# This file is in the public domain.
|
# 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!
|
# Please view me with 4 column tabs!
|
||||||
|
|
||||||
@ -280,16 +280,8 @@ package: pre-package
|
|||||||
fi
|
fi
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !target(pre-build)
|
.if !target(depends)
|
||||||
pre-build:
|
depends:
|
||||||
@${DO_NADA}
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if !target(build)
|
|
||||||
build: configure pre-build ${BUILD_COOKIE}
|
|
||||||
|
|
||||||
${BUILD_COOKIE}:
|
|
||||||
@echo "===> Building for ${DISTNAME}"
|
|
||||||
.if defined(DEPENDS)
|
.if defined(DEPENDS)
|
||||||
@echo "===> ${DISTNAME} depends on: ${DEPENDS}"
|
@echo "===> ${DISTNAME} depends on: ${DEPENDS}"
|
||||||
.if !defined(NO_DEPENDS)
|
.if !defined(NO_DEPENDS)
|
||||||
@ -304,6 +296,18 @@ ${BUILD_COOKIE}:
|
|||||||
@echo "===> Returning to build of ${DISTNAME}"
|
@echo "===> Returning to build of ${DISTNAME}"
|
||||||
.endif
|
.endif
|
||||||
.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)
|
.if defined(USE_GMAKE)
|
||||||
@(cd ${WRKSRC}; ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET})
|
@(cd ${WRKSRC}; ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET})
|
||||||
.else defined(USE_GMAKE)
|
.else defined(USE_GMAKE)
|
||||||
|
Loading…
Reference in New Issue
Block a user