1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Add more vars we subst into DIRDEPS eg. BOOT_MACHINE_DIR and KERNEL_NAME.

Make it easier to add more.
This commit is contained in:
Simon J. Gerraty 2013-10-12 23:48:21 +00:00
parent 402be6b029
commit 04667c4760
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/bmake/; revision=256409

View File

@ -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@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@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@S,${$v},_{${v}},@}
GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_VARS:@v@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,