Minor bug and doc fixes
authorTom Tromey <tromey@redhat.com>
Sat, 9 Dec 1995 17:36:33 +0000 (17:36 +0000)
committerTom Tromey <tromey@redhat.com>
Sat, 9 Dec 1995 17:36:33 +0000 (17:36 +0000)
ChangeLog
Makefile.in
automake.in
automake.texi
clean.am
lib/am/clean.am
lib/am/tags.am
lib/am/texinfos.am
tags.am
texinfos.am
version.texi

index 85ace6f..e9cc01e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+Sat Dec  9 10:16:48 1995  Tom Tromey  <tromey@cambric.colorado.edu>
+
+       * tags.am (TAGS): Use "test -z ... ||" to avoid spurious
+       failures.
+
+       * texinfos.am (install-info): Don't do install-info for now.
+
+       * clean.am (distclean-generic): Don't remove config.status here.
+       * automake.in (do_one_clean_target): Remove config.status later,
+       for 'make -j2'.  From Jim Meyering.
+
 Fri Dec  8 16:30:48 1995  Tom Tromey  <tromey@cambric.colorado.edu>
 
        * configure.in (VERSION): Version 0.25.
index d1ef43d..8b3d003 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile.in generated automatically by automake 0.24 from Makefile.am
+# Makefile.in generated automatically by automake 0.25 from Makefile.am
 # Copyright (C) 1994, 1995 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
@@ -157,8 +157,6 @@ install-info: $(INFO_DEPS)
          for ifile in $${file}*; do            \
            $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; \
          done;                                 \
-         $(SHELL) -c 'install-info --version' >/dev/null 2>&1 \
-           && install-info --infodir=$(infodir) $$d/$$file; \
        done
 
 uninstall-info:
@@ -272,7 +270,7 @@ clean-generic:
 
 distclean-generic:
        rm -f Makefile $(DISTCLEANFILES)
-       rm -f config.cache config.log config.status $(CONFIG_HEADER) stamp-h
+       rm -f config.cache config.log $(CONFIG_HEADER) stamp-h
 
 maintainer-clean-generic:
        test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
@@ -282,6 +280,7 @@ mostlyclean: mostlyclean-binSCRIPTS mostlyclean-vti mostlyclean-info mostlyclean
 clean: mostlyclean clean-binSCRIPTS clean-vti clean-info clean-tags clean-generic
 
 distclean: clean distclean-binSCRIPTS distclean-vti distclean-info distclean-tags distclean-generic
+       rm -f config.status
 
 maintainer-clean: distclean maintainer-clean-binSCRIPTS maintainer-clean-vti maintainer-clean-info maintainer-clean-tags maintainer-clean-generic
        @echo "This command is intended for maintainers to use;"
index 90d8eb7..22055fe 100755 (executable)
@@ -1000,6 +1000,11 @@ sub do_one_clean_target
             . "\t\@echo \"it deletes files that may require special "
             . "tools to rebuild.\"\n");
     }
+    elsif ($name . $target eq 'distclean'
+          || $name . $tar eq 'maintainer-clean')
+    {
+       $output_rules .= "\trm -f config.status\n";
+    }
     $output_rules .= "\n";
 }
 
@@ -1264,7 +1269,6 @@ sub file_contents
     }
 
     # Lines starting with "##" are comments for developer use only.
-    # Maybe this is a bad idea?
     local ($result) = '';
     while (<FC_FILE>)
     {
index 43be0f8..955b379 100644 (file)
@@ -228,7 +228,7 @@ cpio is a good example of such a package (as is GNU @code{tar}, although
 it does not presently use @code{automake}).  The top level
 @file{Makefile.am} for a deep package will contain a @samp{SUBDIRS}
 macro, but no other macros to define objects which are built.
-Typically, @samp{PRGORAMS} is defined in @file{src/Makefile.am}.
+Typically, @samp{PROGRAMS} is defined in @file{src/Makefile.am}.
 
 A shallow package is one in which the primary source resides in the
 top-level directory, while various parts (typically libraries) reside in
@@ -242,7 +242,7 @@ the generated @file{Makefile} will run both locally and in all specified
 subdirectories.  Note that the directories listed in @samp{SUBDIRS} are
 not expected to contain @file{Makefile.am}s; only @file{Makefile}s
 (after configuration).  This allows inclusion of libraries from packages
-which do not use @code{automake} (such as gettext).
+which do not use @code{automake} (such as @code{gettext}).
 
 If @samp{SUBDIRS} is defined, then your @file{configure.in} must include
 @code{AC_PROG_MAKE_SET}.
index 69a015b..927272b 100644 (file)
--- a/clean.am
+++ b/clean.am
@@ -8,7 +8,7 @@ clean-generic:
 
 distclean-generic:
        rm -f Makefile $(DISTCLEANFILES)
-       rm -f config.cache config.log config.status $(CONFIG_HEADER) stamp-h
+       rm -f config.cache config.log $(CONFIG_HEADER) stamp-h
 
 maintainer-clean-generic:
        test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
index 69a015b..927272b 100644 (file)
@@ -8,7 +8,7 @@ clean-generic:
 
 distclean-generic:
        rm -f Makefile $(DISTCLEANFILES)
-       rm -f config.cache config.log config.status $(CONFIG_HEADER) stamp-h
+       rm -f config.cache config.log $(CONFIG_HEADER) stamp-h
 
 maintainer-clean-generic:
        test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
index a01bd8d..0b718ed 100644 (file)
@@ -10,8 +10,7 @@ TAGS:
            tags="$$tags -i $$here/$$subdir/TAGS"; \
          }                                     \
        done;                                   \
-## Make sure we have something to run etags on.  See clean.am to
-## understand "if...else" braindamage.
-       test -n "$(ETAGS_ARGS)$(CONFIG_HEADER)$(SOURCES)$(HEADERS)$$tags" \
-         && etags $(ETAGS_ARGS) $$tags $(CONFIG_HEADER) $(SOURCES) $(HEADERS)
+## Make sure we have something to run etags on.
+       test -z "$(ETAGS_ARGS)$(CONFIG_HEADER)$(SOURCES)$(HEADERS)$$tags" \
+         || etags $(ETAGS_ARGS) $$tags $(CONFIG_HEADER) $(SOURCES) $(HEADERS)
 
index 7735374..de68ff5 100644 (file)
@@ -19,8 +19,12 @@ install-info: $(INFO_DEPS)
          for ifile in $${file}*; do            \
            $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; \
          done;                                 \
-         $(SHELL) -c 'install-info --version' >/dev/null 2>&1 \
-           && install-info --infodir=$(infodir) $$d/$$file; \
+## We need the 'else true' because in some broken versions of sh 'if'
+## will return false if the test fails.
+## FIXME no one has install-info, so for now we just comment it out.
+##       if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
+##         install-info --infodir=$(infodir) $$d/$$file; \
+##       else true; fi;                        \
        done
 
 uninstall-info:
diff --git a/tags.am b/tags.am
index a01bd8d..0b718ed 100644 (file)
--- a/tags.am
+++ b/tags.am
@@ -10,8 +10,7 @@ TAGS:
            tags="$$tags -i $$here/$$subdir/TAGS"; \
          }                                     \
        done;                                   \
-## Make sure we have something to run etags on.  See clean.am to
-## understand "if...else" braindamage.
-       test -n "$(ETAGS_ARGS)$(CONFIG_HEADER)$(SOURCES)$(HEADERS)$$tags" \
-         && etags $(ETAGS_ARGS) $$tags $(CONFIG_HEADER) $(SOURCES) $(HEADERS)
+## Make sure we have something to run etags on.
+       test -z "$(ETAGS_ARGS)$(CONFIG_HEADER)$(SOURCES)$(HEADERS)$$tags" \
+         || etags $(ETAGS_ARGS) $$tags $(CONFIG_HEADER) $(SOURCES) $(HEADERS)
 
index 7735374..de68ff5 100644 (file)
@@ -19,8 +19,12 @@ install-info: $(INFO_DEPS)
          for ifile in $${file}*; do            \
            $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; \
          done;                                 \
-         $(SHELL) -c 'install-info --version' >/dev/null 2>&1 \
-           && install-info --infodir=$(infodir) $$d/$$file; \
+## We need the 'else true' because in some broken versions of sh 'if'
+## will return false if the test fails.
+## FIXME no one has install-info, so for now we just comment it out.
+##       if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
+##         install-info --infodir=$(infodir) $$d/$$file; \
+##       else true; fi;                        \
        done
 
 uninstall-info:
index b9a5d87..21f5a34 100644 (file)
@@ -1,3 +1,3 @@
-@set UPDATED 8 December
+@set UPDATED 9 December
 @set EDITION 0.25
 @set VERSION 0.25