]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/mk/local.gendirdeps.mk
Suppress optional dependencies
[FreeBSD/FreeBSD.git] / share / mk / local.gendirdeps.mk
1 # supress optional/auto dependecies
2 # local.dirdeps.mk will put them in if necessary
3 GENDIRDEPS_FILTER+= \
4         Ngnu/lib/libssp/libssp_nonshared \
5         Ncddl/usr.bin/ctf* \
6         Nlib/clang/include \
7         Nlib/libc_nonshared \
8         Npkgs/pseudo/stage* \
9         Ntools/*
10
11 .if ${RELDIR:Mpkgs*} == ""
12 GENDIRDEPS_FILTER+= \
13         Nusr.bin/clang/clang.host \
14         Ngnu/usr.bin/cc* \
15
16 .endif
17
18 # gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple
19 # order of this list matters!
20 GENDIRDEPS_FILTER_DIR_VARS+= \
21        CSU_DIR \
22        BOOT_MACHINE_DIR
23
24 # order of this list matters!
25 GENDIRDEPS_FILTER_VARS+= \
26        KERNEL_NAME \
27        MACHINE_CPUARCH \
28        MACHINE_ARCH \
29        MACHINE
30
31 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_DIR_VARS:@v@S,${$v},_{${v}},@}
32 GENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_VARS:@v@S,/${$v}/,/_{${v}}/,@:NS,//,*:u}
33
34 # handle the non-standard way that gnu/usr.bin/groff/tmac is staged
35 GENDIRDEPS_FILTER+= C,.*usr/share/tmac.*stage,gnu/usr.bin/groff/tmac,
36