]> sourceware.org Git - automake.git/commitdiff
Rebuild files listed in AC_OUTPUT Release-0-29
authorTom Tromey <tromey@redhat.com>
Thu, 8 Feb 1996 02:47:22 +0000 (02:47 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 8 Feb 1996 02:47:22 +0000 (02:47 +0000)
ChangeLog
Makefile.am
Makefile.in
NEWS
TODO
automake.in
lib/am/Makefile.am

index 0efde9e54567c7ecd086b4c0f818a62106b2f1c6..533f20dea430600b8b32ece676ae5a6fbda323e3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 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.
@@ -11,6 +14,7 @@ Wed Feb  7 18:00:29 1996  Tom Tromey  <tromey@creche.cygnus.com>
        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
index 77088aa0e6c6d5e668932c3a2756a3d5d25bea59..471b31e7967cecae1ac5d20e683a98cddc9bb8c0 100644 (file)
@@ -20,8 +20,6 @@ libraries-clean.am scripts-clean.am programs-clean.am data-clean.am \
 COPYING INSTALL install-sh mdate-sh mkinstalldirs texinfo.tex \
 config.guess config.sub
 
-DIST_OTHER = automake.in
-
 # Gross.
 DIST_SUBDIRS = samples/cpio/*Makefile.am
 
@@ -48,9 +46,6 @@ maintainer-check: automake
          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
index 356bd35d6d160a52c8c639560d0d593dd29f9c20..b8dbf4089cb5d40bc0d2df3b83074dffa8317e4b 100644 (file)
@@ -58,8 +58,6 @@ libraries-clean.am scripts-clean.am programs-clean.am data-clean.am \
 COPYING INSTALL install-sh mdate-sh mkinstalldirs texinfo.tex \
 config.guess config.sub
 
-DIST_OTHER = automake.in
-
 # Gross.
 DIST_SUBDIRS = samples/cpio/*Makefile.am
 
@@ -80,9 +78,9 @@ TEXINFOS = automake.texi
 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@
@@ -106,6 +104,8 @@ config.status: configure
        ./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:
 
@@ -322,9 +322,6 @@ maintainer-check: automake
          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
diff --git a/NEWS b/NEWS
index 78237d822606070d9dee72bc87a38ce9b21fcf2b..4e9ad342e51a0192050f6971c87a94e1a79077ef 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,8 @@ New in 0.29:
 * 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
diff --git a/TODO b/TODO
index b42596859e924acb97d01ebbbd084d64d641ef74..2024810a9ce4eb798eedfef107735e8d78c82968 100644 (file)
--- a/TODO
+++ b/TODO
@@ -2,8 +2,6 @@ Top priorities:
 * 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.
index 9f998ba36fa4304dd27a337acb96b44d2c8ae5a0..04d5b48d67898d961bdf4e2d96680ae86fe16ad4 100755 (executable)
@@ -1141,6 +1141,29 @@ sub handle_configure
        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.
index 77088aa0e6c6d5e668932c3a2756a3d5d25bea59..471b31e7967cecae1ac5d20e683a98cddc9bb8c0 100644 (file)
@@ -20,8 +20,6 @@ libraries-clean.am scripts-clean.am programs-clean.am data-clean.am \
 COPYING INSTALL install-sh mdate-sh mkinstalldirs texinfo.tex \
 config.guess config.sub
 
-DIST_OTHER = automake.in
-
 # Gross.
 DIST_SUBDIRS = samples/cpio/*Makefile.am
 
@@ -48,9 +46,6 @@ maintainer-check: automake
          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
This page took 0.042793 seconds and 5 git commands to generate.