mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 12:44:33 +02:00
build system: Don't make menuconfig if "make clean" run with no sdkconfig
This commit is contained in:
committed by
Angus Gratton
parent
867b20837f
commit
2806b57fc1
@@ -21,9 +21,9 @@ $(KCONFIG_TOOL_DIR)/mconf $(KCONFIG_TOOL_DIR)/conf:
|
|||||||
$(MAKE) -C $(KCONFIG_TOOL_DIR)
|
$(MAKE) -C $(KCONFIG_TOOL_DIR)
|
||||||
|
|
||||||
ifeq ("$(wildcard $(SDKCONFIG))","")
|
ifeq ("$(wildcard $(SDKCONFIG))","")
|
||||||
ifeq ("$(filter defconfig, $(MAKECMDGOALS))","")
|
ifeq ("$(filter defconfig clean% %clean, $(MAKECMDGOALS))","")
|
||||||
# if no configuration file is present and defconfig is not a named
|
# if no configuration file is present and defconfig or clean
|
||||||
# target, run defconfig then menuconfig to get the initial config
|
# is not a named target, run defconfig then menuconfig to get the initial config
|
||||||
$(SDKCONFIG): menuconfig
|
$(SDKCONFIG): menuconfig
|
||||||
menuconfig: defconfig
|
menuconfig: defconfig
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user