aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-04-18 17:35:46 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-04-18 17:35:46 +0000
commit9384678f1668a8fe6eea6e574b4a37e783294897 (patch)
treef62e1d27ecf30113b42e9664e88b35705e248222 /tools
parent8f952fb7715c3a2e7ff901b8becf8cbd11f642b7 (diff)
downloadupstream-9384678f1668a8fe6eea6e574b4a37e783294897.tar.gz
upstream-9384678f1668a8fe6eea6e574b4a37e783294897.tar.bz2
upstream-9384678f1668a8fe6eea6e574b4a37e783294897.zip
the default_subtargets template was a bad idea, since different makefiles require different types of dependencies for subtargets. nuke it...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7003 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 9c315549e5..31b0becc38 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -40,9 +40,17 @@ $(STAGING_DIR)/include-host:
$(TOOL_BUILD_DIR):
@mkdir -p $@
-$(TARGETS_COMPILE) $(TARGETS_INSTALL): $(STAGING_DIR)/include-host $(TOOL_BUILD_DIR)
+%-prereq %-download %-clean: FORCE
+ $(MAKE) -C $* $(patsubst $*-%,%,$@)
-$(eval $(call default_subtargets,))
+%-prepare: $(STAGING_DIR)/include-host $(TOOL_BUILD_DIR) FORCE
+ $(MAKE) -C $* $(patsubst $*-%,%,$@)
+
+%-compile: %-prepare FORCE
+ $(MAKE) -C $* $(patsubst $*-%,%,$@)
+
+%-install: %-compile FORCE
+ $(MAKE) -C $* $(patsubst $*-%,%,$@)
ifeq ($(MAKECMDGOALS),install-targets)
MAKEFLAGS:=$(MAKEFLAGS) -j$(CONFIG_JLEVEL)