mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-09-10 17:15:43 +00:00
Document build system targets. Add a rule to the BUILD module that is run if a source file does not exist to show an error to the user, rather than running the check-source rule before each build (slightly faster/more portable and the generated error is then a true make error).
This commit is contained in:
@@ -92,10 +92,12 @@ endif
|
||||
# Output Messages
|
||||
MSG_CPPCHECK_CMD := ' [CPPCHECK]:'
|
||||
|
||||
# Checks the CPPCheck configuration as used in the user project, to determine if any paths are missing or invalid
|
||||
cppcheck-config:
|
||||
@echo $(MSG_CPPCHECK_CMD) Checking cppcheck configuration check on source files
|
||||
cppcheck $(BASE_CPPCHECK_FLAGS) --check-config $(CPPCHECK_FLAGS) $(SRC)
|
||||
|
||||
# Runs a static analysis using CPPCheck to determine if there are any issues
|
||||
cppcheck:
|
||||
@echo $(MSG_CPPCHECK_CMD) Performing static analysis on source files
|
||||
cppcheck $(BASE_CPPCHECK_FLAGS) --enable=$(CPPCHECK_ENABLE) $(CPPCHECK_SUPPRESS:%=--suppress=%) $(CPPCHECK_FLAGS) $(SRC)
|
||||
|
||||
Reference in New Issue
Block a user