Makefile: Added recipe for generating compile_commands.json
This commit is contained in:
4
Makefile
4
Makefile
@@ -35,6 +35,10 @@ $(DIST):
|
|||||||
$(DEPDIR):
|
$(DEPDIR):
|
||||||
mkdir -p $(patsubst %,$(DEPDIR)/%, $(MODULES))
|
mkdir -p $(patsubst %,$(DEPDIR)/%, $(MODULES))
|
||||||
|
|
||||||
|
clangd: compile_commands.json
|
||||||
|
compile_commands.json: Makefile
|
||||||
|
bear -- $(MAKE) -B MODE=debug
|
||||||
|
|
||||||
.PHONY: run clean
|
.PHONY: run clean
|
||||||
ARGS=
|
ARGS=
|
||||||
run: $(OUT)
|
run: $(OUT)
|
||||||
|
|||||||
Reference in New Issue
Block a user