summaryrefslogtreecommitdiff
path: root/package/sed
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-17 12:12:12 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2007-07-17 12:12:12 +0000
commit431e0223da18b1e2efc40d7bf96f1509087c1221 (patch)
treee382dbbcaedc70243300b6bc7b16a87bbc810319 /package/sed
parent4705b600764c683e934da7db54f7971a3c647e8a (diff)
Avoid constant rebuild of 'sed'
Diffstat (limited to 'package/sed')
-rw-r--r--package/sed/sed.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/package/sed/sed.mk b/package/sed/sed.mk
index 867bacbc5..c3ccf4c49 100644
--- a/package/sed/sed.mk
+++ b/package/sed/sed.mk
@@ -62,13 +62,16 @@ build-sed-host-binary: $(SED_DIR1)/$(SED_BINARY)
rm -rf $(HOST_SED_DIR)/share/locale $(HOST_SED_DIR)/usr/info \
$(HOST_SED_DIR)/usr/man $(HOST_SED_DIR)/usr/share/doc; fi
-use-sed-host-binary:
+$(HOST_SED_DIR)/$(SED_TARGET_BINARY):
if [ ! -e "$(HOST_SED_DIR)/$(SED_TARGET_BINARY)" ] ; then \
mkdir -p "$(HOST_SED_DIR)/bin"; \
rm -f "$(HOST_SED_DIR)/$(SED_TARGET_BINARY)"; \
ln -sf "$(HOST_SED_IF_ANY)" "$(HOST_SED_DIR)/$(SED_TARGET_BINARY)"; \
fi
+
+use-sed-host-binary: $(HOST_SED_DIR)/$(SED_TARGET_BINARY)
+
host-sed: $(HOST_SED_BINARY)
ifeq ($(HOST_SED_BINARY),build-sed-host-binary)
@@ -113,6 +116,8 @@ $(SED_DIR2)/.configured: $(SED_DIR2)/.unpacked
--localstatedir=/var \
--mandir=/usr/man \
--infodir=/usr/info \
+ --include=$(STAGING_DIR)/include \
+ --include=$(STAGING_DIR)/usr/include \
$(DISABLE_NLS) \
);
touch $(SED_DIR2)/.configured
@@ -151,4 +156,4 @@ sed-dirclean:
ifeq ($(strip $(BR2_PACKAGE_SED)),y)
TARGETS+=sed
endif
-.PHONY: sed host-sed
+.PHONY: sed host-sed use-sed-host-binary