+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.
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.
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.
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
version2.test \
version3.test \
version4.test \
+version5.test \
vpath.test \
vtexi.test \
vtexi2.test \
(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
mkdir build
cd build
../configure
-make distdir
+$MAKE distdir
mkdir baz2
touch baz2/foo2
-make check
+$MAKE check
test -f ./ylwrap
cd sub
-make foo/foo2.o
+$MAKE foo/foo2.o
test -f foo/foo2.c
test -f foo/foo2.o
$AUTOCONF
$AUTOMAKE -a
./configure --prefix `pwd`/install
-make install-data
+$MAKE install-data
test -f install/foo/bar/baz.h
$AUTOCONF
$AUTOMAKE -a
./configure --prefix `pwd`/install
-make install-data
+$MAKE install-data
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
$MAKE
test -d foo/.deps
-make distclean
+$MAKE distclean
test -d foo/.deps && exit 1
:
$AUTOCONF
$AUTOMAKE -a
./configure --prefix=`cd install && pwd`
-make
-make distdir
+$MAKE
+$MAKE distdir
$AUTOCONF
$AUTOMAKE -a
./configure --prefix=`cd install && pwd`
-make
-make install-strip
+$MAKE
+$MAKE install-strip
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