summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-06 00:59:37 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-06 00:59:37 +0000
commit3a0333eee6e7a71ed501eafe5a136093f850c1e0 (patch)
treee9b9bb0aa3d967dbf055691da2600e5433faf067
parente09f12b7c54969a8edfa292bf6fa003c99b98fa7 (diff)
Jan-Benedict Glaw: allow people to override the default `tar`
binary via TAR make variable for non-GNU systems
-rw-r--r--Makefile.in6
-rw-r--r--Rules.mak1
2 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index d75b67b40..bf0b5ccee 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -112,8 +112,8 @@ install_headers:
else \
extra_exclude="" ; \
fi ; \
- tar -chf - --exclude .svn $$extra_exclude include \
- | tar -xf - -C $(PREFIX)$(DEVEL_PREFIX)
+ $(TAR) -chf - --exclude .svn $$extra_exclude include \
+ | $(TAR) -xf - -C $(PREFIX)$(DEVEL_PREFIX)
echo -e '#ifndef _LIBC_INTERNAL_H\n#define _LIBC_INTERNAL_H 1\n#endif\n' > \
$(PREFIX)$(DEVEL_PREFIX)include/libc-internal.h
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/dl-osinfo.h
@@ -334,7 +334,7 @@ dist release:
$(MAKE) -s distclean
$(RM) -r ../uClibc-$(VERSION) ../uClibc-$(VERSION).tar.gz
svn -q export . ../uClibc-$(VERSION)
- tar czf ../uClibc-$(VERSION).tar.gz -C .. uClibc-$(VERSION)
+ $(TAR) czf ../uClibc-$(VERSION).tar.gz -C .. uClibc-$(VERSION)
du -b ../uClibc-$(VERSION).tar.gz
check:
diff --git a/Rules.mak b/Rules.mak
index e9c5c53f6..2b06ed8ec 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -36,6 +36,7 @@ STRIPTOOL = $(CROSS)strip
INSTALL = install
LN = ln
RM = rm -f
+TAR = tar
STRIP_FLAGS ?= -x -R .note -R .comment