* tests/Makefile.am (TESTS): Added yacc5.test.
[automake.git] / tests / make.test
blob99c4218b7a8e9b229022ca44c773c72b9d992017
1 #! /bin/sh
3 # Test to make sure `make' check works.
4 # From Ralf Corsepius.
6 . $srcdir/defs || exit 1
8 cat > configure.in << 'END'
9 AC_INIT(Makefile.am)
10 AM_INIT_AUTOMAKE(foo,0,no)
11 AM_MAKE_INCLUDE
12 AC_OUTPUT(Makefile)
13 END
15 : > Makefile.am
17 $needs_autoconf
18 $needs_gnu_make
20 set -e
22 $ACLOCAL
23 $AUTOCONF
24 $AUTOMAKE
26 export ACLOCAL
27 export AUTOCONF
28 export AUTOMAKE
30 # Do the test twice -- once with make and once with make -w.
31 # This tests for a bug reported by Rainer Orth.
33 save="$MAKE"
34 for flag in '' -w; do
35 MAKE="$save $flag" ./configure
37 fgrep '_am_include = #' Makefile && exit 1
39 touch configure.in
40 $MAKE $flag
42 fgrep '_am_include = #' Makefile && exit 1
44 rm -f config.cache
45 done
47 exit 0