From 2806b57fc17688b3c24f726d324d2f3fa6f48f2a Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Mon, 4 Sep 2017 14:50:52 +1000 Subject: [PATCH] build system: Don't make menuconfig if "make clean" run with no sdkconfig --- make/project_config.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/make/project_config.mk b/make/project_config.mk index c0369f95f8..c92d5292ef 100644 --- a/make/project_config.mk +++ b/make/project_config.mk @@ -21,9 +21,9 @@ $(KCONFIG_TOOL_DIR)/mconf $(KCONFIG_TOOL_DIR)/conf: $(MAKE) -C $(KCONFIG_TOOL_DIR) ifeq ("$(wildcard $(SDKCONFIG))","") -ifeq ("$(filter defconfig, $(MAKECMDGOALS))","") -# if no configuration file is present and defconfig is not a named -# target, run defconfig then menuconfig to get the initial config +ifeq ("$(filter defconfig clean% %clean, $(MAKECMDGOALS))","") +# if no configuration file is present and defconfig or clean +# is not a named target, run defconfig then menuconfig to get the initial config $(SDKCONFIG): menuconfig menuconfig: defconfig else