Newer
Older
libkcpp / mk / check-cppcheck-rule.mk
Nomura Kei on 4 Jun 490 bytes first commit
# ------------------------------------------------------------------------------
#  cppcheck ルール
# ------------------------------------------------------------------------------
.PHONY: cppcheck
cppcheck:
	@for subdir in $(SUBDIRS); do		\
		$(MAKE) cppcheck -C $$subdir;	\
	done
ifneq ($(strip $(TARGET)),)
ifneq ($(strip $(TARGET)),ut.exe)
	-@$(MKDIR) -p $(CPPCHECK_REPORT_DIR)
	$(CPPCHECK) $(CPPCHECK_FLAGS) $(CPPCHECK_SUPPRESS) $(INCLUDES) $(SRCDIR) 2> $(CPPCHECK_LOG)
endif
endif