svn commit: r305009 - head/share/mk
Bryan Drewery
bdrewery at FreeBSD.org
Mon Aug 29 18:31:35 UTC 2016
Author: bdrewery
Date: Mon Aug 29 18:31:34 2016
New Revision: 305009
URL: https://svnweb.freebsd.org/changeset/base/305009
Log:
Allow parallelizing clean/cleandepend/depend with all.
This now makes 'make -jX clean all install' safe.
MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
Modified:
head/share/mk/bsd.dep.mk
head/share/mk/bsd.obj.mk
Modified: head/share/mk/bsd.dep.mk
==============================================================================
--- head/share/mk/bsd.dep.mk Mon Aug 29 18:00:14 2016 (r305008)
+++ head/share/mk/bsd.dep.mk Mon Aug 29 18:31:34 2016 (r305009)
@@ -297,6 +297,8 @@ cleandepend:
rm -rf ${CLEANDEPENDDIRS}
.endif
.endif
+.ORDER: cleandepend all
+.ORDER: cleandepend depend
.if !target(checkdpadd) && (defined(DPADD) || defined(LDADD))
_LDADD_FROM_DPADD= ${DPADD:R:T:C;^lib(.*)$;-l\1;g}
Modified: head/share/mk/bsd.obj.mk
==============================================================================
--- head/share/mk/bsd.obj.mk Mon Aug 29 18:00:14 2016 (r305008)
+++ head/share/mk/bsd.obj.mk Mon Aug 29 18:31:34 2016 (r305009)
@@ -156,6 +156,7 @@ clean:
-rm -rf ${CLEANDIRS}
.endif
.endif
+.ORDER: clean all
cleandir: cleanobj
More information about the svn-src-head
mailing list