mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(TMPDIR): Make sure it's defined.
(my-distcheck): Build in $(TMPDIR), not `.'.
This commit is contained in:
1 parent
33ee26bc23
commit
722a49ea0c
1 file changed
+5
-4
+5
-4
@@ -198,10 +198,11 @@ null_AM_MAKEFLAGS = \
|
|||||||
# by the use of _(). The --disable-nls effectively defines away that macro,
|
# by the use of _(). The --disable-nls effectively defines away that macro,
|
||||||
# and building with CFLAGS='-Wformat -Werror' causes any format warning to be
|
# and building with CFLAGS='-Wformat -Werror' causes any format warning to be
|
||||||
# treated as a failure.
|
# treated as a failure.
|
||||||
t=./=test
|
TMPDIR ?= /tmp
|
||||||
|
t=$(TMPDIR)/$(PACKAGE)/test
|
||||||
my-distcheck: $(local-check)
|
my-distcheck: $(local-check)
|
||||||
-rm -rf $(t)
|
-rm -rf $(t)
|
||||||
mkdir $(t)
|
mkdir -p $(t)
|
||||||
GZIP=$(GZIP_ENV) $(AMTAR) -C $(t) -zxf $(distdir).tar.gz
|
GZIP=$(GZIP_ENV) $(AMTAR) -C $(t) -zxf $(distdir).tar.gz
|
||||||
cd $(t)/$(distdir) \
|
cd $(t)/$(distdir) \
|
||||||
&& ./configure --disable-nls \
|
&& ./configure --disable-nls \
|
||||||
@@ -210,8 +211,8 @@ my-distcheck: $(local-check)
|
|||||||
&& $(MAKE) dvi \
|
&& $(MAKE) dvi \
|
||||||
&& $(MAKE) check \
|
&& $(MAKE) check \
|
||||||
&& $(MAKE) distclean
|
&& $(MAKE) distclean
|
||||||
cd $(t) && mv $(distdir) $(distdir).old \
|
(cd $(t) && mv $(distdir) $(distdir).old \
|
||||||
&& $(AMTAR) -zxf ../$(distdir).tar.gz
|
&& $(AMTAR) -zxf - ) < $(distdir).tar.gz
|
||||||
diff -ur $(t)/$(distdir).old $(t)/$(distdir)
|
diff -ur $(t)/$(distdir).old $(t)/$(distdir)
|
||||||
-rm -rf $(t)
|
-rm -rf $(t)
|
||||||
@echo "========================"; \
|
@echo "========================"; \
|
||||||
|
|||||||
Reference in new issue
Block a user