For llvm/clang libraries, skip including tablegen-produced .d files when

the target is "make depend".  This works around errors during
incremental make depend of some clang libraries, for example "don't know
how to make contrib/llvm/include/llvm/IR/IntrinsicsR600.td".

Reported by:	emaste
This commit is contained in:
Dimitry Andric 2015-10-06 19:49:53 +00:00
parent f44fc79d0b
commit 9a2f5539ec
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=288951

View File

@ -247,9 +247,11 @@ 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
.for dep in ${TGHDRS:C/$/.inc.d/}
. sinclude "${dep}"
.endfor
.if !make(depend)
. for dep in ${TGHDRS:C/$/.inc.d/}
. sinclude "${dep}"
. endfor
.endif
SRCS+= ${TGHDRS:C/$/.inc.h/}
DPSRCS+= ${TGHDRS:C/$/.inc.h/}