aboutsummaryrefslogtreecommitdiffstats
path: root/tools/Makefile
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
commit1099e2d679328043c2c317169054f16a86b5d45b (patch)
tree08f2beef40c9c1fb7483e72aa597949b73f355ad /tools/Makefile
parent532654e3c6237f9867c35ca38b3d4967d4e054ff (diff)
downloadupstream-1099e2d679328043c2c317169054f16a86b5d45b.tar.gz
upstream-1099e2d679328043c2c317169054f16a86b5d45b.tar.bz2
upstream-1099e2d679328043c2c317169054f16a86b5d45b.zip
the default_subtargets template was a bad idea, since different makefiles require different types of dependencies for subtargets. nuke it...
SVN-Revision: 7003
Diffstat (limited to 'tools/Makefile')
-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)