Wed Feb 7 18:00:29 1996 Tom Tromey <tromey@creche.cygnus.com>
+ * Makefile.am (automake): Removed.
+ (DIST_OTHER): Removed.
+
* automake.in (handle_source_transform): All dep_files are
relative to $(srcdir).
(handle_libraries): Ditto.
Give error if appropriate install macro not seen.
(handle_subdirs): Ensure $seen_gettext before requiring
gettext-specific files.
+ (handle_configure): Automatically rebuild
From Jim Meyering:
* automake.in (handle_source_transform): Use \W when quoting
COPYING INSTALL install-sh mdate-sh mkinstalldirs texinfo.tex \
config.guess config.sub
-DIST_OTHER = automake.in
-
# Gross.
DIST_SUBDIRS = samples/cpio/*Makefile.am
perl4.036 -c -w automake; \
else :; fi
-automake: automake.in
- CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
-
# Tag before making distribution. Also, don't make a distribution if
# checks fail. Also, make sure the NEWS file is up-to-date.
cvs-dist: maintainer-check
COPYING INSTALL install-sh mdate-sh mkinstalldirs texinfo.tex \
config.guess config.sub
-DIST_OTHER = automake.in
-
# Gross.
DIST_SUBDIRS = samples/cpio/*Makefile.am
DATA = $(pkgdata_DATA)
DIST_COMMON = README AUTHORS COPYING ChangeLog INSTALL Makefile.am \
-Makefile.in NEWS README THANKS TODO aclocal.m4 config.guess config.sub \
-configure configure.in install-sh mdate-sh mkinstalldirs stamp-vti \
-texinfo.tex version.texi
+Makefile.in NEWS README THANKS TODO aclocal.m4 automake.in config.guess \
+config.sub configure configure.in install-sh mdate-sh mkinstalldirs \
+stamp-vti texinfo.tex version.texi
PACKAGE = @PACKAGE@
./config.status --recheck
$(srcdir)/configure: configure.in $(ACLOCAL)
cd $(srcdir) && autoconf
+automake: $(top_builddir)/config.status automake.in
+ cd $(top_srcdir) && CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
mostlyclean-binSCRIPTS:
perl4.036 -c -w automake; \
else :; fi
-automake: automake.in
- CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
-
# Tag before making distribution. Also, don't make a distribution if
# checks fail. Also, make sure the NEWS file is up-to-date.
cvs-dist: maintainer-check
* Allow hierarchies deeper than 2. From Gord Matzigkeit.
* HEADERS variable no longer needed; now can put .h files directly into
foo_SOURCES variable.
+* Automake automatically rebuilds files listed in AC_OUTPUT. The
+ corresponding ".in" files are included in the distribution.
\f
New in 0.28:
* Added --gnu and --gnits options
* Must rewrite am_install_var. Should break into multiple functions.
This will allow the callers to be a little smarter.
* Rewrite clean targets.
-* Use @other_input_files to automate regeneration. Must do dirname
- canonicalization
Handle MAINT_CHARSET. Use recode in dist target. Handle dist-zoo and
dist-zip.
if $config_name;
$contents{'CONFIG_HEADER'} = "${top_builddir}/${config_name}"
if $config_name;
+
+ # Now look for other files in this directory which must be remade
+ # by config.status, and generate rules for them.
+ local ($file, $local);
+ foreach $file (@other_input_files)
+ {
+ # Skip files not in this directory, any Makefile, and the
+ # config header. These last two must be handled specially.
+ next unless &dirname ($file) eq $relative_dir;
+ next if $file eq $top_builddir . '/' . $config_name;
+ ($local = $file) =~ s/^.*\///;
+ next if $local eq 'Makefile';
+
+ # FIXME support ":" syntax of AC_OUTPUT here.
+ $output_rules .= ($local . ': '
+ . '$(top_builddir)/config.status ' . $local . ".in\n"
+ . "\t"
+ . 'cd $(top_srcdir) && CONFIG_FILES='
+ . ($relative_dir eq '.' ? '' : '$(subdir)/')
+ . '$@ CONFIG_HEADERS= ./config.status'
+ . "\n");
+ &require_file ($NORMAL, $local . '.in');
+ }
}
# Handle C headers.
COPYING INSTALL install-sh mdate-sh mkinstalldirs texinfo.tex \
config.guess config.sub
-DIST_OTHER = automake.in
-
# Gross.
DIST_SUBDIRS = samples/cpio/*Makefile.am
perl4.036 -c -w automake; \
else :; fi
-automake: automake.in
- CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
-
# Tag before making distribution. Also, don't make a distribution if
# checks fail. Also, make sure the NEWS file is up-to-date.
cvs-dist: maintainer-check