Tag
Hash :
cfa9415f
Author :
Date :
2002-03-21T09:11:56
* 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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
#! /bin/sh
# Test for $(top_srcdir) with dependencies.
required=gcc
. $srcdir/defs || exit 1
mkdir foo
cat >foo/main.c <<'EOF'
int main() { return 0; }
EOF
cat >Makefile.am <<'EOF'
AUTOMAKE_OPTIONS = subdir-objects
bin_PROGRAMS = bar
bar_SOURCES = foo/main.c
EOF
cat >configure.in <<'EOF'
AC_INIT(foo/main.c)
AC_CONFIG_AUX_DIR(.)
AM_INIT_AUTOMAKE(test_am, 1.0)
AC_PROG_CC
AM_PROG_CC_C_O
AC_OUTPUT(Makefile)
EOF
touch README NEWS AUTHORS ChangeLog
mkdir build
set -e
$ACLOCAL
$AUTOCONF
$AUTOMAKE -a
cd build
CC='gcc' ../configure
$MAKE
test -d foo/.deps
$MAKE distclean
test -d foo/.deps && exit 1
: