allow for disabling creation of compile_commands.json

This commit is contained in:
2025-01-24 20:03:46 +01:00
parent e69bd03dbf
commit 15d314127b

View File

@@ -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)