build system: Don't make menuconfig if "make clean" run with no sdkconfig

pull/955/merge
Angus Gratton 2017-09-04 14:50:52 +10:00 zatwierdzone przez Angus Gratton
rodzic 867b20837f
commit 2806b57fc1
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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