*before* setting $am_file_name and $in_file_name.
+2001-03-05 Akim Demaille <akim@epita.fr>
+
+ * automake.in (&generate_makefile): Call &initialize_per_input
+ *before* setting $am_file_name and $in_file_name.
+
+
2001-03-05 Akim Demaille <akim@epita.fr>
* automake.in ($in_file_name, $am_file_name, $relative_dirs):
-# generated automatically by automake 1.4e from
+# Makefile.in generated automatically by automake 1.4e from Makefile.am.
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
TEXINFOS = automake.texi
DATA = $(dist_pkgdata_DATA) $(dist_script_DATA)
-DIST_COMMON = README $(dist_pkgdata_DATA) $(dist_script_DATA) AUTHORS \
-COPYING ChangeLog INSTALL NEWS README-alpha THANKS TODO aclocal.in \
-aclocal.m4 ansi2knr.1 ansi2knr.c automake.in compile config.guess \
-config.sub configure configure.in depcomp elisp-comp install-sh \
-mdate-sh missing mkinstalldirs py-compile stamp-vti texinfo.tex \
-version.texi ylwrap
+DIST_COMMON = README $(dist_pkgdata_DATA) $(dist_script_DATA) AUTHORS \
+COPYING ChangeLog INSTALL Makefile.am Makefile.in NEWS README-alpha \
+THANKS TODO aclocal.in aclocal.m4 ansi2knr.1 ansi2knr.c automake.in \
+compile config.guess config.sub configure configure.in depcomp \
+elisp-comp install-sh mdate-sh missing mkinstalldirs py-compile \
+stamp-vti texinfo.tex version.texi ylwrap
DIST_SUBDIRS = $(SUBDIRS)
all: all-recursive
{
my ($output, $makefile) = @_;
+ # Reset all the Makefile.am related variables.
+ &initialize_per_input;
+
# Name of input file ("Makefile.am") and output file
# ("Makefile.in"). These have no directory components.
$am_file_name = basename ($makefile) . '.am';
my (@secondary_inputs);
($output, @secondary_inputs) = split (/:/, $output);
- &initialize_per_input;
$relative_dir = dirname ($output);
$am_relative_dir = dirname ($makefile);
# Generate copyright header for generated Makefile.in.
my $ov = $output_vars;
$output_vars = ("# $in_file_name generated automatically by automake "
- . $VERSION . " from $am_file_name\n");
+ . $VERSION . " from $am_file_name.\n");
$output_vars .= $gen_copyright;
# Now go through and delete all the variables that the user did
-# generated automatically by automake 1.4e from
+# Makefile.in generated automatically by automake 1.4e from Makefile.am.
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
DIST_SOURCES =
DATA = $(m4data_DATA)
-DIST_COMMON =
+DIST_COMMON = Makefile.am Makefile.in
all: all-am
.SUFFIXES:
-# generated automatically by automake 1.4e from
+# Makefile.in generated automatically by automake 1.4e from Makefile.am.
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
# Free Software Foundation, Inc.
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
DIST_SOURCES =
-DIST_COMMON =
+DIST_COMMON = Makefile.am Makefile.in
all: all-am
.SUFFIXES: