xref: /freebsd/share/mk/local.gendirdeps.mk (revision 5633315ba3f391a941d9f5acc0c8118b0c9456fe)
104667c47SSimon J. Gerraty# supress optional/auto dependecies
27750ad47SMarcel Moolenaar# local.dirdeps.mk will put them in if necessary
304667c47SSimon J. GerratyGENDIRDEPS_FILTER+= \
404667c47SSimon J. Gerraty	Ngnu/lib/libssp/libssp_nonshared \
504667c47SSimon J. Gerraty	Ncddl/usr.bin/ctf* \
6*5633315bSSimon J. Gerraty	Nlib/clang/include \
7*5633315bSSimon J. Gerraty	Nlib/libc_nonshared \
8*5633315bSSimon J. Gerraty	Npkgs/pseudo/stage* \
9*5633315bSSimon J. Gerraty	Ntools/*
10*5633315bSSimon J. Gerraty
11*5633315bSSimon J. Gerraty.if ${RELDIR:Mpkgs*} == ""
12*5633315bSSimon J. GerratyGENDIRDEPS_FILTER+= \
13*5633315bSSimon J. Gerraty	Nusr.bin/clang/clang.host \
14*5633315bSSimon J. Gerraty	Ngnu/usr.bin/cc* \
15*5633315bSSimon J. Gerraty
16*5633315bSSimon J. Gerraty.endif
177750ad47SMarcel Moolenaar
187750ad47SMarcel Moolenaar# gendirdeps.mk will turn _{VAR} into ${VAR} which keeps this simple
1904667c47SSimon J. Gerraty# order of this list matters!
2004667c47SSimon J. GerratyGENDIRDEPS_FILTER_DIR_VARS+= \
2104667c47SSimon J. Gerraty       CSU_DIR \
2204667c47SSimon J. Gerraty       BOOT_MACHINE_DIR
237750ad47SMarcel Moolenaar
2404667c47SSimon J. Gerraty# order of this list matters!
2504667c47SSimon J. GerratyGENDIRDEPS_FILTER_VARS+= \
2604667c47SSimon J. Gerraty       KERNEL_NAME \
2704667c47SSimon J. Gerraty       MACHINE_CPUARCH \
2804667c47SSimon J. Gerraty       MACHINE_ARCH \
2904667c47SSimon J. Gerraty       MACHINE
3004667c47SSimon J. Gerraty
3104667c47SSimon J. GerratyGENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_DIR_VARS:@v@S,${$v},_{${v}},@}
3204667c47SSimon J. GerratyGENDIRDEPS_FILTER+= ${GENDIRDEPS_FILTER_VARS:@v@S,/${$v}/,/_{${v}}/,@:NS,//,*:u}
3304667c47SSimon J. Gerraty
3404667c47SSimon J. Gerraty# handle the non-standard way that gnu/usr.bin/groff/tmac is staged
3504667c47SSimon J. GerratyGENDIRDEPS_FILTER+= C,.*usr/share/tmac.*stage,gnu/usr.bin/groff/tmac,
367750ad47SMarcel Moolenaar
37