From 85f55026819b6546c1a9c7023d0b21992764352e Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 24 Jan 2026 14:17:40 +0000 Subject: [PATCH] Makefile: Added recipe for generating compile_commands.json --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index f8ff06b..029b0d0 100644 --- a/Makefile +++ b/Makefile @@ -35,6 +35,10 @@ $(DIST): $(DEPDIR): mkdir -p $(patsubst %,$(DEPDIR)/%, $(MODULES)) +clangd: compile_commands.json +compile_commands.json: Makefile + bear -- $(MAKE) -B MODE=debug + .PHONY: run clean ARGS= run: $(OUT)