summaryrefslogtreecommitdiff
path: root/dist-check.mk
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-12-09 10:26:21 +0100
committerJim Meyering <meyering@redhat.com>2009-12-13 11:22:39 +0100
commit6ee02e3d8301eb7fb58b374c72b41c52836a104d (patch)
treee1b75448e9f4bc8d9d65ec5a6516c1e78ce170ea /dist-check.mk
parent207a978e6483a56302319c56f3b8266cada0510d (diff)
downloadcoreutils-6ee02e3d8301eb7fb58b374c72b41c52836a104d.tar.xz
tests: make the taint-distcheck rule easier to share with other projects
* dist-check.mk (taint-distcheck): Skip this test in a project that uses libtool.
Diffstat (limited to 'dist-check.mk')
-rw-r--r--dist-check.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/dist-check.mk b/dist-check.mk
index 87dfc409f..664d92b0b 100644
--- a/dist-check.mk
+++ b/dist-check.mk
@@ -23,8 +23,11 @@ fake_home = $(tp)/home
# and don't affect anything in $HOME. Create witness files in $HOME,
# record their attributes, and build/test. Then ensure that the
# witnesses were not affected.
+# Skip this test when using libtool, since libtool-generated scripts
+# cannot deal with a space-tainted srcdir.
ALL_RECURSIVE_TARGETS += taint-distcheck
taint-distcheck: $(DIST_ARCHIVES)
+ grep '^[ ]*LT_INIT' configure.ac >/dev/null && exit 0
test -d $(t_taint) && chmod -R 700 $(t_taint) || :
-rm -rf $(t_taint) $(fake_home)
mkdir -p $(t_prefix) $(t_taint) $(fake_home)