mirror of
https://github.com/thepigeongenerator/sdl_template.git
synced 2025-12-17 05:55:47 +01:00
allow for disabling creation of compile_commands.json
This commit is contained in:
4
makefile
4
makefile
@@ -43,9 +43,13 @@ $(DIR):
|
|||||||
@mkdir -p $@
|
@mkdir -p $@
|
||||||
|
|
||||||
# update compile commands if the makefile has been updated (for linting)
|
# update compile commands if the makefile has been updated (for linting)
|
||||||
|
ifeq ($(NO_CMDS),1)
|
||||||
|
compile_commands.json: makefile
|
||||||
|
else
|
||||||
compile_commands.json: makefile
|
compile_commands.json: makefile
|
||||||
@touch compile_commands.json
|
@touch compile_commands.json
|
||||||
$(MAKE) clean
|
$(MAKE) clean
|
||||||
bear -- make
|
bear -- make
|
||||||
|
endif
|
||||||
|
|
||||||
-include $(DEP)
|
-include $(DEP)
|
||||||
|
|||||||
Reference in New Issue
Block a user