summaryrefslogtreecommitdiff
path: root/dist-check.mk
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-12-13 10:35:49 +0100
committerJim Meyering <meyering@redhat.com>2009-12-13 10:51:36 +0100
commit02919661750c535e67fd204345e2ac4982c70887 (patch)
tree5848818dc31b0195ee35c95accc2c67bf6062aca /dist-check.mk
parentd9ba88597409c6c3f89c2ab173369cc1ec26507d (diff)
downloadcoreutils-02919661750c535e67fd204345e2ac4982c70887.tar.xz
maint: move definitions from maint.mk to dist-check.mk
* dist-check.mk (null_AM_MAKEFLAGS): Define here, not in maint.mk. (built_programs): Likewise. (my-distcheck): Move comments to... (coreutils-path-check): ...the code they refer to. Remove obsolete comments. (null_AM_MAKEFLAGS): Add gperf, even though it's not used here. * gnulib: Update to latest, for fixed maint.mk.
Diffstat (limited to 'dist-check.mk')
-rw-r--r--dist-check.mk32
1 files changed, 20 insertions, 12 deletions
diff --git a/dist-check.mk b/dist-check.mk
index 0299f5178..87dfc409f 100644
--- a/dist-check.mk
+++ b/dist-check.mk
@@ -9,6 +9,8 @@ tmpdir = $(abs_top_builddir)/tests/torture
t=$(tmpdir)/$(PACKAGE)/test
pfx=$(t)/i
+built_programs = $$(cd src && MAKEFLAGS= $(MAKE) -s built_programs.list)
+
# More than once, tainted build and source directory names would
# have caused at least one "make check" test to apply "chmod 700"
# to all directories under $HOME. Make sure it doesn't happen again.
@@ -71,6 +73,13 @@ define my-instcheck
}
endef
+# The hard-linking for-loop below ensures that there is a bin/ directory
+# full of all of the programs under test (except the ones that are required
+# for basic Makefile rules), all symlinked to the just-built "false" program.
+# This is to ensure that if ever a test neglects to make PATH include
+# the build srcdir, these always-failing programs will run.
+# Otherwise, it is too easy to test the wrong programs.
+# Note that "false" itself is a symlink to true, so it too will malfunction.
define coreutils-path-check
{ \
echo running coreutils-path-check; \
@@ -101,18 +110,17 @@ define coreutils-path-check
}
endef
-# Use -Wformat -Werror to detect format-string/arg-list mismatches.
-# Also, check for shadowing problems with -Wshadow, and for pointer
-# arithmetic problems with -Wpointer-arith.
-# These CFLAGS are pretty strict. If you build this target, you probably
-# have to have a recent version of gcc and glibc headers.
-# The hard-linking for-loop below ensures that there is a bin/ directory
-# full of all of the programs under test (except the ones that are required
-# for basic Makefile rules), all symlinked to the just-built "false" program.
-# This is to ensure that if ever a test neglects to make PATH include
-# the build srcdir, these always-failing programs will run.
-# Otherwise, it is too easy to test the wrong programs.
-# Note that "false" itself is a symlink to true, so it too will malfunction.
+# Use this to make sure we don't run these programs when building
+# from a virgin tgz file, below.
+null_AM_MAKEFLAGS ?= \
+ ACLOCAL=false \
+ AUTOCONF=false \
+ AUTOMAKE=false \
+ AUTOHEADER=false \
+ GPERF=false \
+ LIBTOOL=false \
+ MAKEINFO=false
+
ALL_RECURSIVE_TARGETS += my-distcheck
my-distcheck: $(DIST_ARCHIVES) $(local-check)
$(MAKE) syntax-check