]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* all.test: Test all *-local targets, not just all-local.
authorTom Tromey <tromey@redhat.com>
Sun, 10 Jan 1999 18:00:35 +0000 (18:00 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 10 Jan 1999 18:00:35 +0000 (18:00 +0000)
tests/ChangeLog
tests/all.test

index 542c0367aca29067850ea81f9062067bbc105edf..29f659485c1b2d8e5e1ee187f6282f32e74550fb 100644 (file)
@@ -1,5 +1,7 @@
 1999-01-10  Tom Tromey  <tromey@cygnus.com>
 
+       * all.test: Test all *-local targets, not just all-local.
+
        * all.test: New file.
        * Makefile.am (TESTS): Added all.test.
 
index a5206cfd2d29c0b1147b84c200787be042a415f0..61e129282147a12859755b6b88eedb5e24508b59 100755 (executable)
@@ -1,14 +1,15 @@
 #! /bin/sh
 
-# Test to make sure all-local works correctly.
+# Test to make sure all-local and other -local targets work correctly.
 
 . $srcdir/defs || exit 1
 
-cat > Makefile.am << 'END'
-all-local:
-       @echo foo
-END
+for target in all install-exec install-data uninstall; do
+   echo "Doing $target"
+   echo "${target}-local:" > Makefile.am
 
-$AUTOMAKE || exit 1
-grep 'all-local all-local' Makefile.in && exit 1
+   $AUTOMAKE || exit 1
+
+   fgrep "${target}-local ${target}-local" Makefile.in && exit 1
+done
 exit 0