From: Tom Tromey Date: Wed, 16 May 2001 04:09:50 +0000 (+0000) Subject: * tests/Makefile.am (TESTS): Added maintclean.test. X-Git-Tag: v1.10.2~1859 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b459ff3b151a8fd0e92dc960065ed977bde9dea7;p=platform%2Fupstream%2Fautomake.git * tests/Makefile.am (TESTS): Added maintclean.test. (XFAIL_TESTS): Likewise. * tests/maintclean.test: New file. --- diff --git a/ChangeLog b/ChangeLog index 3a0b36c..dfbbdd2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2001-05-15 Tom Tromey + * tests/Makefile.am (TESTS): Added maintclean.test. + (XFAIL_TESTS): Likewise. + * tests/maintclean.test: New file. + Fixes PR automake/175: * tests/target-cflags.test: Use $needs_gnu_make. * tests/exsource.test: Use $needs_gnu_make. diff --git a/tests/Makefile.am b/tests/Makefile.am index 2232fcb..2489e02 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -2,7 +2,7 @@ AUTOMAKE_OPTIONS = gnits -XFAIL_TESTS = subdir5.test +XFAIL_TESTS = subdir5.test maintclean.test TESTS = \ acinclude.test \ @@ -173,6 +173,7 @@ link_f_cxx.test \ link_f_only.test \ lisp.test \ ltlibobjs.test \ +maintclean.test \ make.test \ makevars.test \ man.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index 990c558..d9f33b1 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -70,7 +70,7 @@ install_sh = @install_sh@ AUTOMAKE_OPTIONS = gnits -XFAIL_TESTS = subdir5.test +XFAIL_TESTS = subdir5.test maintclean.test TESTS = \ acinclude.test \ @@ -241,6 +241,7 @@ link_f_cxx.test \ link_f_only.test \ lisp.test \ ltlibobjs.test \ +maintclean.test \ make.test \ makevars.test \ man.test \ diff --git a/tests/maintclean.test b/tests/maintclean.test new file mode 100755 index 0000000..3327dc2 --- /dev/null +++ b/tests/maintclean.test @@ -0,0 +1,37 @@ +#! /bin/sh + +# Make sure that `maintainer-clean' removes Makefile.in, configure, +# and aclocal.m4. + +. $srcdir/defs || exit 1 + +cat > configure.in << 'END' +AC_INIT(Makefile.am) +AM_INIT_AUTOMAKE(foo,0,no) +AM_MAKE_INCLUDE +AC_OUTPUT(Makefile) +END + +: > Makefile.am + +$needs_autoconf + +set -e + +$ACLOCAL +$AUTOCONF +$AUTOMAKE + +export ACLOCAL +export AUTOCONF +export AUTOMAKE + +./configure + +$MAKE maintainer-clean + +test -f Makefile.in && exit 1 +test -f configure && exit 1 +test -f aclocal.m4 && exit 1 + +exit 0