Changeset View
Changeset View
Standalone View
Standalone View
share/mk/bsd.clang-analyze.mk
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | |||||
# .depend files aren't relevant here since they reference obj.o rather than | # .depend files aren't relevant here since they reference obj.o rather than | ||||
# obj.clang-analyzer, so add in some guesses in case 'make depend' wasn't ran, | # obj.clang-analyzer, so add in some guesses in case 'make depend' wasn't ran, | ||||
# for when directly building 'obj.clang-analyzer'. | # for when directly building 'obj.clang-analyzer'. | ||||
.for __obj in ${CLANG_ANALYZE_OBJS} | .for __obj in ${CLANG_ANALYZE_OBJS} | ||||
${__obj}: ${OBJS_DEPEND_GUESS} | ${__obj}: ${OBJS_DEPEND_GUESS} | ||||
${__obj}: ${OBJS_DEPEND_GUESS.${__obj}} | ${__obj}: ${OBJS_DEPEND_GUESS.${__obj}} | ||||
.endfor | .endfor | ||||
.if ${MK_FAST_DEPEND} == "yes" | beforeanalyze: depend .PHONY | ||||
beforeanalyze: depend | |||||
.endif | |||||
beforeanalyze: .PHONY | |||||
.if !defined(_RECURSING_PROGS) && !empty(CLANG_ANALYZE_SRCS) && \ | .if !defined(_RECURSING_PROGS) && !empty(CLANG_ANALYZE_SRCS) && \ | ||||
${CLANG_ANALYZE_OUTPUT} != "text" | ${CLANG_ANALYZE_OUTPUT} != "text" | ||||
mkdir -p ${CLANG_ANALYZE_OUTPUT_DIR} | mkdir -p ${CLANG_ANALYZE_OUTPUT_DIR} | ||||
.endif | .endif | ||||
.if !target(analyze) | .if !target(analyze) | ||||
analyze: beforeanalyze .WAIT ${CLANG_ANALYZE_OBJS} | analyze: beforeanalyze .WAIT ${CLANG_ANALYZE_OBJS} | ||||
.endif | .endif | ||||
.if exists(${CLANG_ANALYZE_OUTPUT_DIR}) | .if exists(${CLANG_ANALYZE_OUTPUT_DIR}) | ||||
CLEANDIRS+= ${CLANG_ANALYZE_OUTPUT_DIR} | CLEANDIRS+= ${CLANG_ANALYZE_OUTPUT_DIR} | ||||
.endif | .endif | ||||
.endif # !target(__<bsd.clang-analyze.mk>__) | .endif # !target(__<bsd.clang-analyze.mk>__) |