diff options
author | Nicolas Thill <nico@openwrt.org> | 2007-04-21 22:23:33 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2007-04-21 22:23:33 +0000 |
commit | 02d736b427aa60ec6f364decdc07f35f8b2dd3a2 (patch) | |
tree | 7dc06d85537fab3f2248456249e31bd44bb95d57 /tools | |
parent | 8714d44dad09f912f8f7b27823800e82310ac304 (diff) | |
download | master-187ad058-02d736b427aa60ec6f364decdc07f35f8b2dd3a2.tar.gz master-187ad058-02d736b427aa60ec6f364decdc07f35f8b2dd3a2.tar.bz2 master-187ad058-02d736b427aa60ec6f364decdc07f35f8b2dd3a2.zip |
fix host header files installation for tools (closes: #1604)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7029 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools')
-rw-r--r-- | tools/Makefile | 11 |
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 |