build: stop make compile-db from having to call make clean
This commit is contained in:
4
Makefile
4
Makefile
@@ -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)
|
||||
|
||||
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user