From 3c1f00b21a11a861ffee0ef801dc57b50b0639c1 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Sun, 4 Feb 2007 16:34:56 +0000 Subject: - avoid spurious rebuilds. Thanks to janlana, closes #1191 - provide a syslinux-source target while at it --- package/lzma/lzma.mk | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'package') diff --git a/package/lzma/lzma.mk b/package/lzma/lzma.mk index 0fd343252..24682fdcd 100644 --- a/package/lzma/lzma.mk +++ b/package/lzma/lzma.mk @@ -12,8 +12,8 @@ LZMA_TARGET_DIR:=$(BUILD_DIR)/lzma-$(LZMA_VER) LZMA_CFLAGS:=$(TARGET_CFLAGS) ifeq ($(BR2_LARGEFILE),y) LZMA_CFLAGS+=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -else endif +LZMA_TARGET_BINARY:=bin/lzma $(DL_DIR)/$(LZMA_SOURCE): $(WGET) -P $(DL_DIR) $(LZMA_SITE)/$(LZMA_SOURCE) @@ -81,14 +81,14 @@ $(LZMA_TARGET_DIR)/src/lzma/lzma: $(LZMA_TARGET_DIR)/.configured $(MAKE) -C $(LZMA_TARGET_DIR) all touch -c $@ -$(TARGET_DIR)/usr/bin/lzma: $(LZMA_TARGET_DIR)/src/lzma/lzma - -cp -dpf $(LZMA_TARGET_DIR)/src/lzma/lzma $(TARGET_DIR)/bin/; - -$(STRIP) --strip-unneeded $(TARGET_DIR)/bin/lzma - touch -c $(TARGET_DIR)/bin/lzma +$(TARGET_DIR)/$(LZMA_TARGET_BINARY): $(LZMA_TARGET_DIR)/src/lzma/lzma + cp -dpf $(LZMA_TARGET_DIR)/src/lzma/lzma $@ + -$(STRIP) --strip-unneeded $@ + touch -c $@ -#lzma-headers: $(TARGET_DIR)/bin/lzma +#lzma-headers: $(TARGET_DIR)/$(LZMA_TARGET_BINARY) -lzma-target: uclibc $(TARGET_DIR)/usr/bin/lzma +lzma-target: uclibc $(TARGET_DIR)/$(LZMA_TARGET_BINARY) lzma-source: $(DL_DIR)/$(LZMA_SOURCE) -- cgit v1.2.3