summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-04-02 10:10:58 +0000
committerJim Meyering <jim@meyering.net>2003-04-02 10:10:58 +0000
commit722a49ea0c585f8827d74ce4ed0c1ddfec58b711 (patch)
treefc7ea2208a7277245e6bc10887249d55895835a5
parent33ee26bc23a501323c44b7c58ed80931ed735e93 (diff)
downloadcoreutils-722a49ea0c585f8827d74ce4ed0c1ddfec58b711.tar.xz
(TMPDIR): Make sure it's defined.
(my-distcheck): Build in $(TMPDIR), not `.'.
-rw-r--r--Makefile.maint9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile.maint b/Makefile.maint
index 30b3dea05..b2b5a56f5 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -198,10 +198,11 @@ null_AM_MAKEFLAGS = \
# by the use of _(). The --disable-nls effectively defines away that macro,
# and building with CFLAGS='-Wformat -Werror' causes any format warning to be
# treated as a failure.
-t=./=test
+TMPDIR ?= /tmp
+t=$(TMPDIR)/$(PACKAGE)/test
my-distcheck: $(local-check)
-rm -rf $(t)
- mkdir $(t)
+ mkdir -p $(t)
GZIP=$(GZIP_ENV) $(AMTAR) -C $(t) -zxf $(distdir).tar.gz
cd $(t)/$(distdir) \
&& ./configure --disable-nls \
@@ -210,8 +211,8 @@ my-distcheck: $(local-check)
&& $(MAKE) dvi \
&& $(MAKE) check \
&& $(MAKE) distclean
- cd $(t) && mv $(distdir) $(distdir).old \
- && $(AMTAR) -zxf ../$(distdir).tar.gz
+ (cd $(t) && mv $(distdir) $(distdir).old \
+ && $(AMTAR) -zxf - ) < $(distdir).tar.gz
diff -ur $(t)/$(distdir).old $(t)/$(distdir)
-rm -rf $(t)
@echo "========================"; \