fix: bear not available

This commit is contained in:
Quinn
2025-04-09 15:35:51 +02:00
parent 10d1aab05f
commit 6189bdcf92

View File

@@ -20,9 +20,13 @@ obj/%.o: src/%.c
@mkdir -p $(@D)
$(CC) -c -MD -MP $(CFLAGS) -o $@ $<
ifneq ($(shell which bear),)
compile_commands.json: makefile
$(MAKE) clean
@touch compile_commands.json
bear -- make compile
else
compile_commands.json:
endif
-include $(OBJ:.o=.d)