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 $@
|
||||
|
||||
# update compile commands if the makefile has been updated (for linting)
|
||||
ifeq ($(NO_CMDS),1)
|
||||
compile_commands.json: makefile
|
||||
else
|
||||
compile_commands.json: makefile
|
||||
@touch compile_commands.json
|
||||
$(MAKE) clean
|
||||
bear -- make
|
||||
endif
|
||||
|
||||
-include $(DEP)
|
||||
|
||||
Reference in New Issue
Block a user