build: store compile_commands.json in source tree .config dir
This commit is contained in:
3
Makefile
3
Makefile
@@ -8,6 +8,7 @@ ROOT_DIR := $(patsubst %/,%,$(dir $(MAKEFILE_PATH)))
|
||||
include tools/make/gcc-cross-compile.mk
|
||||
|
||||
BUILD_DIR := build
|
||||
CONFIG_DIR := .config
|
||||
|
||||
####################################
|
||||
# Architecture-specific source files
|
||||
@@ -67,7 +68,7 @@ clean:
|
||||
@printf " \033[1;93mRM\033[0m Deleting build files.\n"
|
||||
@rm -rf $(BUILD_DIR)
|
||||
|
||||
$(BUILD_DIR)/compile_commands.json:
|
||||
$(CONFIG_DIR)/compile_commands.json:
|
||||
@printf " \033[1;93mGEN\033[0m Generating compiler database.\n"
|
||||
|
||||
@./tools/make/generate_compile_commands.py
|
||||
|
||||
Reference in New Issue
Block a user