svn commit: r256409 - projects/bmake/share/mk
Simon J. Gerraty
sjg at FreeBSD.org
Sat Oct 12 23:48:22 UTC 2013
Author: sjg
Date: Sat Oct 12 23:48:21 2013
New Revision: 256409
URL: http://svnweb.freebsd.org/changeset/base/256409
Log:
Add more vars we subst into DIRDEPS eg. BOOT_MACHINE_DIR and KERNEL_NAME.
Make it easier to add more.
Modified:
projects/bmake/share/mk/local.gendirdeps.mk
Modified: projects/bmake/share/mk/local.gendirdeps.mk
==============================================================================
--- projects/bmake/share/mk/local.gendirdeps.mk Sat Oct 12 23:46:41 2013 (r256408)
+++ projects/bmake/share/mk/local.gendirdeps.mk Sat Oct 12 23:48:21 2013 (r256409)
@@ -1,10 +1,26 @@
-# supress optional dependecies
+# supress optional/auto dependecies
# local.dirdeps.mk will put them in if necessary
-GENDIRDEPS_FILTER+= Ngnu/lib/libssp/libssp_nonshared
+GENDIRDEPS_FILTER+= \
+ Ngnu/lib/libssp/libssp_nonshared \
+ Ncddl/usr.bin/ctf* \
+ Npkgs/pseudo/stage*
# gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple
-GENDIRDEPS_FILTER+= ${CSU_DIR:L:@v at S,/${$v},/_{${v}},@}
+# order of this list matters!
+GENDIRDEPS_FILTER_DIR_VARS+= \
+ CSU_DIR \
+ BOOT_MACHINE_DIR
-# this could easily get confused
-GENDIRDEPS_FILTER+= ${MACHINE_CPUARCH MACHINE_CPU MACHINE_ARCH MACHINE:L:@v at S,/${$v}/,/_{${v}}/,@:NS,//,*:u}
+# order of this list matters!
+GENDIRDEPS_FILTER_VARS+= \
+ KERNEL_NAME \
+ MACHINE_CPUARCH \
+ MACHINE_ARCH \
+ MACHINE
+
+GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_DIR_VARS:@v at S,${$v},_{${v}},@}
+GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_VARS:@v at S,/${$v}/,/_{${v}}/,@:NS,//,*:u}
+
+# handle the non-standard way that gnu/usr.bin/groff/tmac is staged
+GENDIRDEPS_FILTER+= C,.*usr/share/tmac.*stage,gnu/usr.bin/groff/tmac,
More information about the svn-src-projects
mailing list