diff Makefile @ 90:7c77c6ec17ee

Add "make defconfig". Modify global options to start with CONFIG_TOYBOX_.
author Rob Landley <rob@landley.net>
date Wed, 31 Jan 2007 14:37:01 -0500
parents 4f5cdc6552da
children b596b9b3b2af
line wrap: on
line diff
--- a/Makefile	Wed Jan 31 14:18:05 2007 -0500
+++ b/Makefile	Wed Jan 31 14:37:01 2007 -0500
@@ -12,6 +12,10 @@
 
 include kconfig/Makefile
 
+# defconfig is the "maximum sane config"; allyesconfig minus debugging and such.
+defconfig: allyesconfig
+	@sed -i -r -e "s/^(CONFIG_(TOYBOX_DEBUG|TOYBOX_FREE))=.*/# \1 is not set/" .config
+
 .config: Config.in toys/Config.in
 
 # The long and roundabout sed is to make old versions of sed happy.  New ones