2002-05-06 Alexandre Duret-Lutz <duret_g@epita.fr>
+ 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 <duret_g@epita.fr>
+
Fix for condd.test (conditional `+='):
* automake.in (%appendvar): New.
(initialize_per_input): Clear it.
'CONFIG_H_PATH' => $config_h_path,
'STAMP' => "$stamp"));
- push @distclean_config, $cn_sans_dir;
+ push @distclean_config, $cn_sans_dir, $stamp;
}
}
}
}
- # 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 '
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
-@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
subdir3.test \
subdir4.test \
subdir5.test \
+subdir6.test \
subdirbuiltsources.test \
subdircond.test \
subobj.test \
subdir3.test \
subdir4.test \
subdir5.test \
+subdir6.test \
subdirbuiltsources.test \
subdircond.test \
subobj.test \
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"
--- /dev/null
+#! /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
+:
-@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