summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-10-05 09:40:24 +0000
committerjkh <jkh@FreeBSD.org>1997-10-05 09:40:24 +0000
commit418d0a6a92470af062b69dd63c64f3166ee615e5 (patch)
tree7f06509995affc58ef8727989dc29f3a49b10feb /share
parent038c3f0595c56a98acb9161846fdfa51640a0e4b (diff)
downloadFreeBSD-src-418d0a6a92470af062b69dd63c64f3166ee615e5.zip
FreeBSD-src-418d0a6a92470af062b69dd63c64f3166ee615e5.tar.gz
Changes to support full make parallelism (-j<n>) in the world
target. Reviewed by: <many different folks> Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.dep.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk
index 257d3bf..a63d79e 100644
--- a/share/mk/bsd.dep.mk
+++ b/share/mk/bsd.dep.mk
@@ -1,4 +1,4 @@
-# $Id: bsd.dep.mk,v 1.13 1997/06/18 03:39:34 asami Exp $
+# $Id: bsd.dep.mk,v 1.14 1997/08/26 16:54:33 bde Exp $
#
# The include file <bsd.dep.mk> handles Makefile dependencies.
#
@@ -33,8 +33,8 @@ DEPENDFILE?= .depend
# some of the rules involve .h sources, so remove them from mkdep line
.if !target(depend)
-depend: beforedepend ${DEPENDFILE} afterdepend _SUBDIR
.if defined(SRCS)
+depend: beforedepend ${DEPENDFILE} afterdepend _SUBDIR
# .if defined ${SRCS:M*.[sS]} does not work
__depend_s= ${SRCS:M*.[sS]}
@@ -60,11 +60,15 @@ ${DEPENDFILE}: ${SRCS}
cd ${.CURDIR}; ${MAKE} _EXTRADEPEND
.endif
+.ORDER: ${DEPENDFILE} afterdepend
.else
-${DEPENDFILE}: _SUBDIR
+depend: beforedepend afterdepend _SUBDIR
.endif
.if !target(beforedepend)
beforedepend:
+.else
+.ORDER: beforedepend ${DEPENDFILE}
+.ORDER: beforedepend afterdepend
.endif
.if !target(afterdepend)
afterdepend:
OpenPOWER on IntegriCloud