make compile_commands.json when opening directory

This commit is contained in:
2025-01-13 00:14:52 +01:00
parent d3585ada15
commit 676f27c094
3 changed files with 13 additions and 2 deletions

View File

@@ -12,6 +12,8 @@ SRC = $(wildcard src/*.c) $(wildcard src/**/*.c) $(wildcard src/**/**/*.c) $(wil
OBJ = $(patsubst src/%,$(DIR_OBJ)/$(ARCH)/%,$(SRC:.c=.o))
TARGET = $(DIR_BIN)/$(ARCH)/$(NAME)$(EXT)
all: linux-x86_64 win-x86_64 web
clean:
rm -rf $(DIR_BIN) $(DIR_OBJ)