Fix "rm .config;make menuconfig" to work like "rm .config; make" (I.E. do
authorRob Landley <rob@landley.net>
Mon, 13 Mar 2006 02:52:23 +0000 (02:52 -0000)
committerRob Landley <rob@landley.net>
Mon, 13 Mar 2006 02:52:23 +0000 (02:52 -0000)
defconfig first), and group busybox administrative settings into a sub-menu.

Config.in
Makefile

index 6c9e0c5de84655c66998b5deff22f792b6c4696d..33f6d9aee3d2d71190e9bed2da4cf8a2b521bc64 100644 (file)
--- a/Config.in
+++ b/Config.in
@@ -9,7 +9,7 @@ config HAVE_DOT_CONFIG
        bool
        default y
 
-comment "Busybox Settings"
+menu "Busybox Settings"
 
 menu "General Configuration"
 
@@ -384,6 +384,8 @@ endmenu
 
 source libbb/Config.in
 
+endmenu
+
 comment "Applets"
 
 source archival/Config.in
index f255394ff784b017dcb20d87d086b8389e447af5..64293b8c7a0d2a97a86b94f6bae812d0aa45097e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -162,7 +162,7 @@ help:
 
 ifneq ($(strip $(HAVE_DOT_CONFIG)),y)
 # Default target if none was requested explicitly
-all: defconfig menuconfig ;
+all: menuconfig ;
 
 ifneq ($(filter-out $(noconfig_targets),$(MAKECMDGOALS)),)
 # warn if no configuration exists and we are asked to build a non-config target
@@ -191,6 +191,7 @@ scripts/config/mconf: scripts/config/Makefile
        $(Q)$(MAKE) -C scripts/config ncurses conf mconf
 
 menuconfig: scripts/config/mconf
+       @[ -f .config ] || make $(MAKEFLAGS) defconfig
        @./scripts/config/mconf $(CONFIG_CONFIG_IN)
 
 config: scripts/config/conf