From: Alexandre Duret-Lutz Date: Mon, 6 May 2002 19:10:42 +0000 (+0000) Subject: Erase stamps from the Makefile that generates them. X-Git-Tag: Release-1-6-1b~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0292a032fa393607927f070a902d5b8bda730569;p=thirdparty%2Fautomake.git Erase stamps from the Makefile that generates them. * automake.in (handle_configure): Append each used stamp to @distclean_config. Don't warn about stamp-h in AC_OUTPUT, this file is not used anymore. * lib/am/clean.am (distclean-generic): Don't erase stamp-h and stamp-h[0-9]*. * tests/subdir6.test: New file. * tests/Makefile.am (TESTS): Add it. --- diff --git a/ChangeLog b/ChangeLog index f6bc9aae1..9dd4b8d57 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2002-05-06 Alexandre Duret-Lutz + + Erase stamps from the Makefile that generates them. + + * automake.in (handle_configure): Append each used stamp to + @distclean_config. Don't warn about stamp-h in AC_OUTPUT, this + file is not used anymore. + * lib/am/clean.am (distclean-generic): Don't erase stamp-h and + stamp-h[0-9]*. + * tests/subdir6.test: New file. + * tests/Makefile.am (TESTS): Add it. + 2002-05-06 Alexandre Duret-Lutz Fix for condd.test (conditional `+='): diff --git a/automake.in b/automake.in index cde6166c1..5191d7483 100755 --- a/automake.in +++ b/automake.in @@ -3942,7 +3942,7 @@ sub handle_configure 'CONFIG_H_PATH' => $config_h_path, 'STAMP' => "$stamp")); - push @distclean_config, $cn_sans_dir; + push @distclean_config, $cn_sans_dir, $stamp; } } @@ -4031,17 +4031,6 @@ sub handle_configure } } - # Some users have been tempted to put `stamp-h' in the - # AC_OUTPUT line. This won't do the right thing, so we - # explicitly fail here. - if ($local eq 'stamp-h') - { - # FIXME: allow real filename. - file_error ($ac_config_files_location, - 'stamp-h should not appear in AC_OUTPUT'); - next; - } - my @rewritten_inputs = rewrite_inputs_into_dependencies (1, @inputs); $output_rules .= ($local . ': ' . '$(top_builddir)/config.status ' diff --git a/lib/am/clean.am b/lib/am/clean.am index 7d40c68b0..f436a9e47 100644 --- a/lib/am/clean.am +++ b/lib/am/clean.am @@ -29,7 +29,7 @@ clean-generic: distclean-am: distclean-generic clean-am distclean-generic: - -rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]* + -rm -f Makefile $(CONFIG_CLEAN_FILES) ?DISTCLEAN? -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES) maintainer-clean-am: maintainer-clean-generic distclean-am diff --git a/stamp-vti b/stamp-vti index b5432b2fd..d55fd1da4 100644 --- a/stamp-vti +++ b/stamp-vti @@ -1,4 +1,4 @@ -@set UPDATED 22 April 2002 -@set UPDATED-MONTH April 2002 +@set UPDATED 6 May 2002 +@set UPDATED-MONTH May 2002 @set EDITION 1.6a @set VERSION 1.6a diff --git a/tests/Makefile.am b/tests/Makefile.am index 2cf6d1488..14613f969 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -311,6 +311,7 @@ subdir2.test \ subdir3.test \ subdir4.test \ subdir5.test \ +subdir6.test \ subdirbuiltsources.test \ subdircond.test \ subobj.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index f15f02e9b..a814f82d7 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -395,6 +395,7 @@ subdir2.test \ subdir3.test \ subdir4.test \ subdir5.test \ +subdir6.test \ subdirbuiltsources.test \ subdircond.test \ subobj.test \ @@ -605,7 +606,7 @@ mostlyclean-generic: clean-generic: distclean-generic: - -rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]* + -rm -f Makefile $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" diff --git a/tests/subdir6.test b/tests/subdir6.test new file mode 100755 index 000000000..535c35872 --- /dev/null +++ b/tests/subdir6.test @@ -0,0 +1,27 @@ +#! /bin/sh + +# Test to make sure config headers in subdirectories are cleaned. + +. $srcdir/defs || exit 1 + +set -e + +cat >> configure.in << 'END' +AM_CONFIG_HEADER([sub/config.h:sub/config.hin]) +AC_OUTPUT +END + +touch Makefile.am +mkdir sub + +$ACLOCAL +$AUTOCONF +touch sub/config.hin +$AUTOMAKE +./configure +test -f sub/stamp-h1 +$MAKE clean +test -f sub/stamp-h1 +$MAKE distclean +test -f sub/stamp-h1 && exit 1 +: diff --git a/version.texi b/version.texi index b5432b2fd..d55fd1da4 100644 --- a/version.texi +++ b/version.texi @@ -1,4 +1,4 @@ -@set UPDATED 22 April 2002 -@set UPDATED-MONTH April 2002 +@set UPDATED 6 May 2002 +@set UPDATED-MONTH May 2002 @set EDITION 1.6a @set VERSION 1.6a