build: stop make compile-db from having to call make clean

This commit is contained in:
2023-02-08 16:46:59 +00:00
parent 4edc7e308e
commit 4c4178e170
2 changed files with 2 additions and 4 deletions

View File

@@ -69,8 +69,6 @@ clean:
@rm -rf $(BUILD_DIR)
$(BUILD_DIR)/compile_commands.json:
@$(MAKE) --no-print-directory clean
@printf " \033[1;93mGEN\033[0m Generating compiler database.\n"
@./tools/make/generate_compile_commands.py
@@ -82,6 +80,6 @@ tools:
include arch/$(ARCH)/extra.mk
.PHONY: all tools compile-db
.PHONY: all tools compile-db $(BUILD_DIR)/compile_commands.json
.INTERMEDIATE: $(ARCH_TEMP_FILES)

View File

@@ -12,7 +12,7 @@ rootdir = os.getcwd()
compile_db = []
make_output = subprocess.check_output(['make', '-nw']).decode('utf-8')
make_output = subprocess.check_output(['make', '-nwB']).decode('utf-8')
make_output_lines = make_output.split('\n')