aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2007-04-21 22:23:33 +0000
committerNicolas Thill <nico@openwrt.org>2007-04-21 22:23:33 +0000
commit74991d46b7001a133ced0f45a8181dbd1df2b0fd (patch)
tree132785a8b788e98d6df6882667b272d1550ccd78 /tools
parent942d07de9a1e5f63ed9b7005dc1c8f73b510e8dc (diff)
downloadupstream-74991d46b7001a133ced0f45a8181dbd1df2b0fd.tar.gz
upstream-74991d46b7001a133ced0f45a8181dbd1df2b0fd.tar.bz2
upstream-74991d46b7001a133ced0f45a8181dbd1df2b0fd.zip
fix host header files installation for tools (closes: #1604)
SVN-Revision: 7029
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 31b0becc38..513ecccb51 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -32,10 +32,11 @@ endif
$(STAMP): $(TOPDIR)/.config
mkdir -p $(shell dirname $@)
touch $@
-
-$(STAGING_DIR)/include-host:
- @mkdir -p $@
- @$(CP) ./include/*.h $@/
+
+TOOL_HOST_INCLUDES:=$(patsubst ./include/%.h,$(STAGING_DIR)/include-host/%.h,$(wildcard ./include/*.h))
+$(TOOL_HOST_INCLUDES): $(STAGING_DIR)/include-host/%.h: ./include/%.h
+ @mkdir -p $(STAGING_DIR)/include-host
+ $(CP) $< $@
$(TOOL_BUILD_DIR):
@mkdir -p $@
@@ -43,7 +44,7 @@ $(TOOL_BUILD_DIR):
%-prereq %-download %-clean: FORCE
$(MAKE) -C $* $(patsubst $*-%,%,$@)
-%-prepare: $(STAGING_DIR)/include-host $(TOOL_BUILD_DIR) FORCE
+%-prepare: $(TOOL_HOST_INCLUDES) $(TOOL_BUILD_DIR) FORCE
$(MAKE) -C $* $(patsubst $*-%,%,$@)
%-compile: %-prepare FORCE