aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-10-27 10:54:18 -0500
committerRob Landley <rob@landley.net>2018-10-27 10:54:18 -0500
commitc9571603db299259bca8271917688455696c14ce (patch)
treeadbc53fbb6bae99e18ecabab22e73a8d72b52485 /Makefile
parent71984f3e28827549aad5b77939cdeeb62382ecb0 (diff)
downloadtoybox-c9571603db299259bca8271917688455696c14ce.tar.gz
Fix "make distclean defconfig toybox" all on one line (good of $CROSS_COMPILER
changed), better error message when .config missing.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 26038e91..1c1c4a4c 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,11 @@ include kconfig/Makefile
-include .singlemake
$(KCONFIG_CONFIG): $(KCONFIG_TOP)
-$(KCONFIG_TOP): generated/Config.in
+ @if [ -e "$(KCONFG_CONFIG)" ]; then make silentoldconfig; \
+ else echo "Not configured (run 'make defconfig' or 'make menuconfig')";\
+ exit 1; fi
+
+$(KCONFIG_TOP): generated/Config.in generated/Config.probed
generated/Config.in: toys/*/*.c scripts/genconfig.sh
scripts/genconfig.sh