summaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1994-11-15 10:16:56 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1994-11-15 10:16:56 +0000
commit297484f4edac5a7608ac4854ebce4de778f512b0 (patch)
treeee209d165eb22225632778ac4be99c051dec65d1 /Mk
parentchange pre-configure to pre-patc (diff)
Make depends a separate target. Now you can select when the dependency
list is traversed.
Notes
Notes: svn path=/head/; revision=382
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk26
1 files changed, 15 insertions, 11 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index ab6d168784aa..7116ad87589e 100644
--- a/Mk/bsd.port.mk
+++ b/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)