diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-10-10 16:36:47 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-10-10 16:36:47 +0000 |
commit | d8595423b0a86c2fbf419f7447ebb59b3ed2420f (patch) | |
tree | 17f12a0857024bae27e83081a686e5cb73f9cf1f /tools/Makefile | |
parent | d0de82ba87d155866dd494b0689d9e0de8b266ab (diff) | |
download | upstream-d8595423b0a86c2fbf419f7447ebb59b3ed2420f.tar.gz upstream-d8595423b0a86c2fbf419f7447ebb59b3ed2420f.tar.bz2 upstream-d8595423b0a86c2fbf419f7447ebb59b3ed2420f.zip |
fix gene2fs build on freebsd
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@5019 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/Makefile')
-rw-r--r-- | tools/Makefile | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/tools/Makefile b/tools/Makefile index 741fd48f6a..c8fad23236 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -10,6 +10,7 @@ include $(TOPDIR)/rules.mk TARGETS-y:=sed sstrip ipkg-utils ext2fs squashfs mtd-utils lzma mkimage TARGETS_DOWNLOAD:=$(patsubst %,%-download,$(TARGETS-y)) +TARGETS_PREPARE:=$(patsubst %,%-prepare,$(TARGETS-y)) TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS-y)) TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS-y)) @@ -25,13 +26,9 @@ TOOL_STAMP_DIR:=$(STAGING_DIR)/stampfiles $(TOOL_STAMP_DIR): mkdir -p $@ -$(STAGING_DIR): - @mkdir -p $@/lib - @mkdir -p $@/include - @mkdir -p $@/include-host - $(CP) ./include/*.h $@/include-host/ - @ln -sf ../lib $@/$(REAL_GNU_TARGET_NAME)/lib - @mkdir -p $@/$(REAL_GNU_TARGET_NAME) +$(STAGING_DIR)/include-host: + @mkdir -p $@ + @$(CP) ./include/*.h $@/ $(TOOL_BUILD_DIR): @mkdir -p $@ @@ -39,7 +36,7 @@ $(TOOL_BUILD_DIR): %-download: FORCE $(MAKE) -C $(patsubst %-download,%,$@) download -%-prepare: $(TOOL_STAMP_DIR) $(STAGING_DIR) $(TOOL_BUILD_DIR) FORCE +%-prepare: $(TOOL_STAMP_DIR) $(STAGING_DIR)/include-host $(TOOL_BUILD_DIR) FORCE @[ -f $(TOOL_STAMP_DIR)/.tool_$@ ] || { \ $(MAKE) -C $(patsubst %-prepare,%,$@) prepare; \ } |