]> sourceware.org Git - automake.git/commitdiff
* Makefile.am (maintainer-check): Check for misuses of make,
authorAlexandre Duret-Lutz <adl@gnu.org>
Thu, 21 Mar 2002 09:11:54 +0000 (09:11 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Thu, 21 Mar 2002 09:11:54 +0000 (09:11 +0000)
autoconf, automake, aclocal, and perl in the testsuite.  Suggest
using $MAKE, $AUTOCONF, $AUTOMAKE, $ACLOCAL, and $PERL instead.
* tests/confsub.test: Use $AUTOCONF and $MAKE.
* tests/extra5.test, tests/extra6.test, tests/lex5.test,
tests/nobase.test, tests/nodist2.test, tests/pr204.test,
tests/pr224.test, tests/pr287.test, tests/strip.test,
tests/yacc8.test: Use $MAKE.

15 files changed:
ChangeLog
Makefile.am
Makefile.in
tests/Makefile.in
tests/confsub.test
tests/extra5.test
tests/extra6.test
tests/lex5.test
tests/nobase.test
tests/nodist2.test
tests/pr204.test
tests/pr224.test
tests/pr287.test
tests/strip.test
tests/yacc8.test

index 060971e5344e319e46e5efbdc935c56e0094cebd..c61b4280c561a380d85ce1c2e61270299605402f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2002-03-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
+
+       * Makefile.am (maintainer-check): Check for misuses of make,
+       autoconf, automake, aclocal, and perl in the testsuite.  Suggest
+       using $MAKE, $AUTOCONF, $AUTOMAKE, $ACLOCAL, and $PERL instead.
+       * tests/confsub.test: Use $AUTOCONF and $MAKE.
+       * tests/extra5.test, tests/extra6.test, tests/lex5.test,
+       tests/nobase.test, tests/nodist2.test, tests/pr204.test,
+       tests/pr224.test, tests/pr287.test, tests/strip.test,
+       tests/yacc8.test: Use $MAKE.
+
 2002-03-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
 
        Add support for two-dot versions.
index 473b00c850d448b10540582cab4d0c5a4981173d..51977c7db8c7b3bbd9c2732fd3a3d91fc5e3b187 100644 (file)
@@ -145,6 +145,31 @@ maintainer-check: automake aclocal
          echo "Don't put AMDEP_TRUE substitution in automake.in" 1>&2; \
          exit 1; \
        fi
+## Tests should never call make directly.
+       @if grep -v '^#' $(srcdir)/tests/*.test | egrep ':[     ]*make'; then \
+         echo 'Do not run "make" in the above tests.  Use "$$MAKE" instead.' \
+         exit 1; \
+       fi
+## Tests should never call autoconf directly.
+       @if grep -v '^#' $(srcdir)/tests/*.test | egrep ':[     ]*autoconf'; then \
+         echo 'Do not run "autoconf" in the above tests.  Use "$$AUTOCONF" instead.' \
+         exit 1; \
+       fi
+## Tests should never call automake directly.
+       @if grep -v '^#' $(srcdir)/tests/*.test | egrep ':[     ]*automake'; then \
+         echo 'Do not run "automake" in the above tests.  Use "$$AUTOMAKE" instead.' \
+         exit 1; \
+       fi
+## Tests should never call aclocal directly.
+       @if grep -v '^#' $(srcdir)/tests/*.test | egrep ':[     ]*aclocal'; then \
+         echo 'Do not run "aclocal" in the above tests.  Use "$$ACLOCAL" instead.' \
+         exit 1; \
+       fi
+## Tests should never call perl directly.
+       @if grep -v '^#' $(srcdir)/tests/*.test | egrep ':[     ]*perl'; then \
+         echo 'Do not run "perl" in the above tests.  Use "$$PERL" instead.' \
+         exit 1; \
+       fi
 
 # Tag before making distribution.  Also, don't make a distribution if
 # checks fail.  Also, make sure the NEWS file is up-to-date.
index dd2f7866a17b75b153ab508b759a724ece9452b8..5cc11e216797cc1d201d487d8c653764c37d552b 100644 (file)
@@ -654,6 +654,26 @@ maintainer-check: automake aclocal
          echo "Don't put AMDEP_TRUE substitution in automake.in" 1>&2; \
          exit 1; \
        fi
+       @if grep -v '^#' $(srcdir)/tests/*.test | egrep ':[     ]*make'; then \
+         echo 'Do not run "make" in the above tests.  Use "$$MAKE" instead.' \
+         exit 1; \
+       fi
+       @if grep -v '^#' $(srcdir)/tests/*.test | egrep ':[     ]*autoconf'; then \
+         echo 'Do not run "autoconf" in the above tests.  Use "$$AUTOCONF" instead.' \
+         exit 1; \
+       fi
+       @if grep -v '^#' $(srcdir)/tests/*.test | egrep ':[     ]*automake'; then \
+         echo 'Do not run "automake" in the above tests.  Use "$$AUTOMAKE" instead.' \
+         exit 1; \
+       fi
+       @if grep -v '^#' $(srcdir)/tests/*.test | egrep ':[     ]*aclocal'; then \
+         echo 'Do not run "aclocal" in the above tests.  Use "$$ACLOCAL" instead.' \
+         exit 1; \
+       fi
+       @if grep -v '^#' $(srcdir)/tests/*.test | egrep ':[     ]*perl'; then \
+         echo 'Do not run "perl" in the above tests.  Use "$$PERL" instead.' \
+         exit 1; \
+       fi
 
 # Tag before making distribution.  Also, don't make a distribution if
 # checks fail.  Also, make sure the NEWS file is up-to-date.
index aeb66e01562985d14756675dbf761d68056a82b4..76dc869e1d16292192e602c7611b024802d603f7 100644 (file)
@@ -65,30 +65,16 @@ PATH_SEPARATOR = @PATH_SEPARATOR@
 AMTAR = @AMTAR@
 APIVERSION = @APIVERSION@
 AWK = @AWK@
-DEFS = @DEFS@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
+DEPDIR = @DEPDIR@
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LIBS = @LIBS@
-MAKEINFO = @MAKEINFO@
 PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
 PERL = @PERL@
-SET_MAKE = @SET_MAKE@
 STRIP = @STRIP@
 VERSION = @VERSION@
-ac_ct_STRIP = @ac_ct_STRIP@
-build_alias = @build_alias@
-host_alias = @host_alias@
+am__include = @am__include@
+am__quote = @am__quote@
 install_sh = @install_sh@
 pkgvdatadir = @pkgvdatadir@
-program_transform_name = @program_transform_name@
-target_alias = @target_alias@
 
 XFAIL_TESTS = condd.test subdir5.test auxdir2.test cond17.test
 
@@ -439,6 +425,7 @@ version.test \
 version2.test \
 version3.test \
 version4.test \
+version5.test \
 vpath.test \
 vtexi.test \
 vtexi2.test \
index 4796965d840016736113638be99b7ca1c6bc683a..ed6663b684fa25c2a8a37b48d31cce8031425bcd 100755 (executable)
@@ -32,13 +32,13 @@ $AUTOMAKE || exit 1
 (fgrep 'subdir/config.h' subdir/Makefile.in |
    fgrep -v 'cd $(top_builddir)') && exit 1
 
-autoconf || exit 1
+$AUTOCONF || exit 1
 ./configure || exit 1
 fgrep 'Before.' subdir/config.h
 
 sleep 1
 echo 'After.' > subdir/config.hin
-make || exit 1
+$MAKE || exit 1
 fgrep 'After.' subdir/config.h || exit 1
 
 exit 0
index 58f7b99e3222353db48aba43a8cefda557f3117a..0b994b8c294326d4d8def5978f69f7a7be78ac73 100755 (executable)
@@ -23,4 +23,4 @@ $AUTOCONF
 mkdir build
 cd build
 ../configure
-make distdir
+$MAKE distdir
index 73a68e7141429b556e9fe17f80f29923ae7d2c0d..0380dec4ca56051353591b6b30d92579df7826ba 100755 (executable)
@@ -40,4 +40,4 @@ touch foo2/bar2/baz2
 mkdir baz2
 touch baz2/foo2
 
-make check
+$MAKE check
index 62410ef8fb34fb609ed03e4d9de14c6f4218ebe9..8b17e0084d9446ce31885f86ff1834706bdee985 100755 (executable)
@@ -66,7 +66,7 @@ $AUTOMAKE -a
 test -f ./ylwrap
 
 cd sub
-make foo/foo2.o
+$MAKE foo/foo2.o
 test -f foo/foo2.c
 test -f foo/foo2.o
 
index 888f340d47a62f62e0bcce76127991a865396953..a9bf79bf31cfda451b5fcef8d895b9d07d643162 100755 (executable)
@@ -21,5 +21,5 @@ $ACLOCAL
 $AUTOCONF
 $AUTOMAKE -a
 ./configure --prefix `pwd`/install
-make install-data
+$MAKE install-data
 test -f install/foo/bar/baz.h
index fae8462f2d5becb027591c60b36c662ed69f3d9f..5c940eab9067fb593ed8a86b1a055946732e042a 100755 (executable)
@@ -20,4 +20,4 @@ $ACLOCAL
 $AUTOCONF
 $AUTOMAKE -a
 ./configure --prefix `pwd`/install
-make install-data
+$MAKE install-data
index 394590ae02f168715c08720d7918825b0ee3d7af..151832dbab29c7dd0e7f7acf5803012746990c56 100755 (executable)
@@ -51,4 +51,4 @@ test -f pr204-0.1/parse.y && exit 1
 test -f pr204-0.1/parse2.c && exit 1
 test -f pr204-0.1/parse2.y && exit 1
 # Make sure parse.c and parse2.c are still targets.
-make parse.c parse2.c
+$MAKE parse.c parse2.c
index c986c965e1ea49464795c6f8f73eab4ec78eaa7e..2f965bc0b6c77da063f482bbbbe9944dcc87fae8 100755 (executable)
@@ -41,6 +41,6 @@ CC='gcc' ../configure
 $MAKE
 
 test -d foo/.deps
-make distclean
+$MAKE distclean
 test -d foo/.deps && exit 1
 :
index a827a3b14a3a40e1934c8ab0cf7197e1d333513e..19006305d714b29de3e9fac8450801efa101a74e 100755 (executable)
@@ -32,5 +32,5 @@ $ACLOCAL
 $AUTOCONF
 $AUTOMAKE -a
 ./configure --prefix=`cd install && pwd`
-make
-make distdir
+$MAKE
+$MAKE distdir
index 154db66426a29ae660e3a39147051adcc0d6e28c..767aaa33bffccc459bb19f9756869f804a4a3f79 100755 (executable)
@@ -32,5 +32,5 @@ $ACLOCAL
 $AUTOCONF
 $AUTOMAKE -a
 ./configure --prefix=`cd install && pwd`
-make
-make install-strip
+$MAKE
+$MAKE install-strip
index 39c8c155c5d8d67299b18a7ca8f22eefed6daffc..4958fe8fa5024467e48d996a4b2fd4dc335d1631 100755 (executable)
@@ -61,7 +61,7 @@ $AUTOMAKE -a
 test -f ./ylwrap || exit 1
 
 cd sub
-make foo/parse2.o
+$MAKE foo/parse2.o
 test -f foo/parse2.c
 test -f foo/parse2.o
 
This page took 0.056903 seconds and 5 git commands to generate.