mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Use the new bmake .dinclude feature to make these safe.
At least FAST_DEPEND won't even run 'make depend', so the code was potentially broken with FAST_DEPEND anyhow. The .dinclude directive will ignore missing files rather than make them be fatal. Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
e32a2cbe39
commit
6a5ac7dc11
1 changed files with 9 additions and 5 deletions
|
|
@ -240,11 +240,15 @@ Checkers.inc.h: ${CLANG_SRCS}/lib/StaticAnalyzer/Checkers/Checkers.td
|
|||
-I ${CLANG_SRCS}/include -d ${.TARGET:C/\.h$/.d/} -o ${.TARGET} \
|
||||
${CLANG_SRCS}/lib/StaticAnalyzer/Checkers/Checkers.td
|
||||
|
||||
.if !make(depend)
|
||||
. for dep in ${TGHDRS:C/$/.inc.d/}
|
||||
. sinclude "${dep}"
|
||||
. endfor
|
||||
.endif
|
||||
.for dep in ${TGHDRS:C/$/.inc.d/}
|
||||
. if ${MAKE_VERSION} < 20160220
|
||||
. if !make(depend)
|
||||
. sinclude "${dep}"
|
||||
. endif
|
||||
. else
|
||||
. dinclude "${dep}"
|
||||
. endif
|
||||
.endfor
|
||||
|
||||
SRCS+= ${TGHDRS:C/$/.inc.h/}
|
||||
CLEANFILES+= ${TGHDRS:C/$/.inc.h/} ${TGHDRS:C/$/.inc.d/}
|
||||
|
|
|
|||
Loading…
Reference in a new issue