summaryrefslogtreecommitdiffstats
path: root/package/tar/tar.mk
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-08-28 21:42:44 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-08-28 21:42:44 +0000
commit98a7a4c9d237cc6117ef01f3c98d3997dd48436e (patch)
treea9239510a2f50ed168f53914307c984ff6af051b /package/tar/tar.mk
parent25fca604f9a7d3bec25ce7d150212e18941aaadf (diff)
downloadbuildroot-novena-98a7a4c9d237cc6117ef01f3c98d3997dd48436e.tar.gz
buildroot-novena-98a7a4c9d237cc6117ef01f3c98d3997dd48436e.zip
- misc cleanups (Cristian Ionescu-Idbohrn)
Diffstat (limited to 'package/tar/tar.mk')
-rw-r--r--package/tar/tar.mk15
1 files changed, 9 insertions, 6 deletions
diff --git a/package/tar/tar.mk b/package/tar/tar.mk
index d76f6b2ef..bcebd0375 100644
--- a/package/tar/tar.mk
+++ b/package/tar/tar.mk
@@ -19,7 +19,7 @@ tar-source: $(DL_DIR)/$(GNUTAR_SOURCE)
$(GNUTAR_DIR)/.unpacked: $(DL_DIR)/$(GNUTAR_SOURCE)
$(GNUTAR_CAT) $(DL_DIR)/$(GNUTAR_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
toolchain/patch-kernel.sh $(GNUTAR_DIR) package/tar/ tar\*.patch
- touch $(GNUTAR_DIR)/.unpacked
+ touch $@
$(GNUTAR_DIR)/.configured: $(GNUTAR_DIR)/.unpacked
(cd $(GNUTAR_DIR); rm -rf config.cache; \
@@ -45,7 +45,7 @@ $(GNUTAR_DIR)/.configured: $(GNUTAR_DIR)/.unpacked
$(DISABLE_NLS) \
$(DISABLE_LARGEFILE) \
)
- touch $(GNUTAR_DIR)/.configured
+ touch $@
$(GNUTAR_DIR)/$(GNUTAR_BINARY): $(GNUTAR_DIR)/.configured
$(MAKE) -C $(GNUTAR_DIR)
@@ -53,12 +53,15 @@ $(GNUTAR_DIR)/$(GNUTAR_BINARY): $(GNUTAR_DIR)/.configured
# This stuff is needed to work around GNU make deficiencies
tar-target_binary: $(GNUTAR_DIR)/$(GNUTAR_BINARY)
@if [ -L $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY) ]; then \
- rm -f $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY); fi
+ rm -f $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY); \
+ fi
@if [ ! -f $(GNUTAR_DIR)/$(GNUTAR_BINARY) -o $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY) \
-ot $(GNUTAR_DIR)/$(GNUTAR_BINARY) ]; then \
- set -x; \
- rm -f $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY); \
- cp -a $(GNUTAR_DIR)/$(GNUTAR_BINARY) $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY); fi
+ set -x; \
+ rm -f $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY); \
+ cp -a $(GNUTAR_DIR)/$(GNUTAR_BINARY) \
+ $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY); \
+ fi
tar: uclibc tar-target_binary