aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-03-13 02:52:23 +0000
committerRob Landley <rob@landley.net>2006-03-13 02:52:23 +0000
commit9dc6913896d3b5f7bb339731c042372601cc755b (patch)
tree4126a1c4c4c5297909f1f15c2b2c6c53b8b02ccf
parente01d746fe962e1c3de57f8b909abc9801ecceff1 (diff)
downloadbusybox-w32-9dc6913896d3b5f7bb339731c042372601cc755b.tar.gz
busybox-w32-9dc6913896d3b5f7bb339731c042372601cc755b.tar.bz2
busybox-w32-9dc6913896d3b5f7bb339731c042372601cc755b.zip
Fix "rm .config;make menuconfig" to work like "rm .config; make" (I.E. do
defconfig first), and group busybox administrative settings into a sub-menu.
-rw-r--r--Config.in4
-rw-r--r--Makefile3
2 files changed, 5 insertions, 2 deletions
diff --git a/Config.in b/Config.in
index 6c9e0c5de..33f6d9aee 100644
--- a/Config.in
+++ b/Config.in
@@ -9,7 +9,7 @@ config HAVE_DOT_CONFIG
9 bool 9 bool
10 default y 10 default y
11 11
12comment "Busybox Settings" 12menu "Busybox Settings"
13 13
14menu "General Configuration" 14menu "General Configuration"
15 15
@@ -384,6 +384,8 @@ endmenu
384 384
385source libbb/Config.in 385source libbb/Config.in
386 386
387endmenu
388
387comment "Applets" 389comment "Applets"
388 390
389source archival/Config.in 391source archival/Config.in
diff --git a/Makefile b/Makefile
index f255394ff..64293b8c7 100644
--- a/Makefile
+++ b/Makefile
@@ -162,7 +162,7 @@ help:
162 162
163ifneq ($(strip $(HAVE_DOT_CONFIG)),y) 163ifneq ($(strip $(HAVE_DOT_CONFIG)),y)
164# Default target if none was requested explicitly 164# Default target if none was requested explicitly
165all: defconfig menuconfig ; 165all: menuconfig ;
166 166
167ifneq ($(filter-out $(noconfig_targets),$(MAKECMDGOALS)),) 167ifneq ($(filter-out $(noconfig_targets),$(MAKECMDGOALS)),)
168# warn if no configuration exists and we are asked to build a non-config target 168# 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
191 $(Q)$(MAKE) -C scripts/config ncurses conf mconf 191 $(Q)$(MAKE) -C scripts/config ncurses conf mconf
192 192
193menuconfig: scripts/config/mconf 193menuconfig: scripts/config/mconf
194 @[ -f .config ] || make $(MAKEFLAGS) defconfig
194 @./scripts/config/mconf $(CONFIG_CONFIG_IN) 195 @./scripts/config/mconf $(CONFIG_CONFIG_IN)
195 196
196config: scripts/config/conf 197config: scripts/config/conf