This removes the need for duplication of all the linux/config/modules
subtargets by just using a wildcard target.  This also means people now get
free access to all the fun kernel targets without having to duplicate another
rule in the toplevel (like `make linux_gconfig`).

Signed-off-by: Mike Frysinger <[EMAIL PROTECTED]>
---
diff --git a/Makefile b/Makefile
index 0450b7b..125dafc 100644
--- a/Makefile
+++ b/Makefile
@@ -182,32 +182,15 @@ modules_install:
                fi; \
        fi
 
-linux_xconfig:
-       KCONFIG_NOTIMESTAMP=1 $(MAKEARCH_KERNEL) -C $(LINUXDIR) xconfig
-linux_menuconfig:
-       KCONFIG_NOTIMESTAMP=1 $(MAKEARCH_KERNEL) -C $(LINUXDIR) menuconfig
-linux_config:
-       KCONFIG_NOTIMESTAMP=1 $(MAKEARCH_KERNEL) -C $(LINUXDIR) config
-modules_xconfig:
-       [ ! -d modules ] || $(MAKEARCH) -C modules xconfig
-modules_menuconfig:
-       [ ! -d modules ] || $(MAKEARCH) -C modules menuconfig
-modules_config:
-       [ ! -d modules ] || $(MAKEARCH) -C modules config
-modules_clean:
-       -[ ! -d modules ] || $(MAKEARCH) -C modules clean
-config_xconfig:
-       $(MAKEARCH) -C config xconfig
-config_menuconfig:
-       $(MAKEARCH) -C config menuconfig
-config_config:
-       $(MAKEARCH) -C config config
-oldconfig_config:
-       $(MAKEARCH) -C config oldconfig
-oldconfig_modules:
-       [ ! -d modules ] || $(MAKEARCH) -C modules oldconfig
-oldconfig_linux:
-       KCONFIG_NOTIMESTAMP=1 $(MAKEARCH_KERNEL) -C $(LINUXDIR) oldconfig
+linux_%:
+       KCONFIG_NOTIMESTAMP=1 $(MAKEARCH_KERNEL) -C $(LINUXDIR) $(patsubst 
linux_%,%,$@)
+modules_%:
+       [ ! -d modules ] || $(MAKEARCH) -C modules $(patsubst modules_%,%,$@)
+config_%: vendors/Kconfig
+       $(MAKEARCH) -C config $(patsubst config_%,%,$@)
+oldconfig_config: config_oldconfig
+oldconfig_modules: modules_oldconfig
+oldconfig_linux: linux_oldconfig
 oldconfig_uClibc:
        [ -z "$(findstring uClibc,$(LIBCDIR))" ] || $(MAKEARCH) -C $(LIBCDIR) 
oldconfig
 
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to