]> sourceware.org Git - automake.git/commitdiff
Various bug fixes
authorTom Tromey <tromey@redhat.com>
Wed, 3 Jan 1996 07:26:18 +0000 (07:26 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 3 Jan 1996 07:26:18 +0000 (07:26 +0000)
ChangeLog
Makefile.in
automake.in
depend.am
lib/am/depend.am
lib/am/texinfos.am
texinfos.am

index 1abcb69b8e4a31c60e7b887087414b06139ad5d5..6b1269298f2dc6fc74c56abdb4b72bc1296e308c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,19 @@
+Wed Jan  3 00:05:40 1996  Tom Tromey  <tromey@cambric.colorado.edu>
+
+       * depend.am ($(srcdir)/.deps/%.P): Must regexp-quote srcdir in sed
+       invocation.
+
+       * automake.in (initialize_global_constants): Don't quote "@" in
+       $install_man_format.
+       (handle_merge_targets): use "@:" as empty command, not ":".
+
 Tue Jan  2 23:33:24 1996  Tom Tromey  <tromey@cambric.colorado.edu>
 
+       * texinfos.am (install-info): Look in $d for info files.  From
+       François Pinard.
+
+       * depend.am ($(srcdir)/.deps/%.P): Fixed regexp.
+
        * automake.in (read_am_file): Correctly deal with continued
        variable definitions.
 
index 8e6e7749eaaa7080a4238bb83f0647a233cd8012..1b858ad0c40167d26620df4cd2131d10190d0abc 100644 (file)
@@ -144,8 +144,8 @@ install-info: $(INFO_DEPS)
          else                                  \
            d=$(srcdir);                        \
          fi;                                   \
-         for ifile in $${file}*; do            \
-           $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; \
+         for ifile in `cd $$d && echo $${file}*`; do \
+           $(INSTALL_DATA) $$ifile $(infodir)/$$ifile; \
          done;                                 \
        done
 
@@ -241,7 +241,7 @@ install-exec: install-binSCRIPTS
 install-data: install-info install-pkgdataDATA
 
 install: install-exec install-data
-       :
+       @:
 
 uninstall: uninstall-binSCRIPTS uninstall-info uninstall-pkgdataDATA
 
index 069cc9d99eae45ee8f6bed6fc8b5e3b6b53a1731..4a13dc42732c4e4a9a84480cfd22688e0407a6dd 100755 (executable)
@@ -938,7 +938,8 @@ sub handle_merge_targets
 
     $output_rules .= ('install: '
                      . join (' ', @install)
-                     . "\n\t:"
+                     # Use "@:" as empty command so nothing prints.
+                     . "\n\t\@:"
                      . "\n\n"
                      . 'uninstall: '
                      . join (' ', @uninstall)
@@ -1269,7 +1270,7 @@ sub initialize_global_constants
 
     # Helper text for dealing with man pages.
     $install_man_format =
-    '  \@sect=@SECTION@;                               \\
+    '  @sect=@SECTION@;                                \\
        inst=`echo "@MANBASE@" | sed \'$(transform)\'`.@FULLSECT@; \\
        echo installing @MAN@ as $(mandir)/man$$sect/$$inst; \\
        $(INSTALL_DATA) $(srcdir)/@MAN@ $(mandir)/man$$sect/$$inst
index 2ebc5d6c994d7e7c3967fbd5aa0cfa3ef1383bd2..6f87be27df94671879b51ad165c1d55b467be92d 100644 (file)
--- a/depend.am
+++ b/depend.am
@@ -22,7 +22,11 @@ $(DEP_FILES): $(srcdir)/.deps/.P
 
 $(srcdir)/.deps/%.P: $(srcdir)/%.c
        @echo "mkdeps $< > $@"
-       @$(MKDEP) $< | sed 's,$(srcdir)/,,g' > $@-tmp
+## Need \< in regexp because otherwise when srcdir=. too much can be
+## matched.  Also we regexp-quote srcdir because "." is a matching
+## operator, and commonly appears in filenames.
+       @re=`echo 's,\<$(srcdir),,g' | sed 's/\./\\./g'`; \
+         $(MKDEP) $< | sed $$re > $@-tmp
        @mv $@-tmp $@
 
 # End of maintainer-only section
index 2ebc5d6c994d7e7c3967fbd5aa0cfa3ef1383bd2..6f87be27df94671879b51ad165c1d55b467be92d 100644 (file)
@@ -22,7 +22,11 @@ $(DEP_FILES): $(srcdir)/.deps/.P
 
 $(srcdir)/.deps/%.P: $(srcdir)/%.c
        @echo "mkdeps $< > $@"
-       @$(MKDEP) $< | sed 's,$(srcdir)/,,g' > $@-tmp
+## Need \< in regexp because otherwise when srcdir=. too much can be
+## matched.  Also we regexp-quote srcdir because "." is a matching
+## operator, and commonly appears in filenames.
+       @re=`echo 's,\<$(srcdir),,g' | sed 's/\./\\./g'`; \
+         $(MKDEP) $< | sed $$re > $@-tmp
        @mv $@-tmp $@
 
 # End of maintainer-only section
index 7fb2d5a406c4ac33a4aab6f287cd202ca5ee03cf..34992b79a5661e8464781af2e0cfa7c491d88ccb 100644 (file)
@@ -16,8 +16,8 @@ install-info: $(INFO_DEPS)
            d=$(srcdir);                        \
          fi;                                   \
 ## This ${...} is in the shell, not in make.
-         for ifile in $${file}*; do            \
-           $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; \
+         for ifile in `cd $$d && echo $${file}*`; do \
+           $(INSTALL_DATA) $$ifile $(infodir)/$$ifile; \
          done;                                 \
 ## We need the 'else' because in some broken versions of sh 'if' will
 ## return false if the test fails.  We use ':' because the GNU
index 7fb2d5a406c4ac33a4aab6f287cd202ca5ee03cf..34992b79a5661e8464781af2e0cfa7c491d88ccb 100644 (file)
@@ -16,8 +16,8 @@ install-info: $(INFO_DEPS)
            d=$(srcdir);                        \
          fi;                                   \
 ## This ${...} is in the shell, not in make.
-         for ifile in $${file}*; do            \
-           $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; \
+         for ifile in `cd $$d && echo $${file}*`; do \
+           $(INSTALL_DATA) $$ifile $(infodir)/$$ifile; \
          done;                                 \
 ## We need the 'else' because in some broken versions of sh 'if' will
 ## return false if the test fails.  We use ':' because the GNU
This page took 0.042968 seconds and 5 git commands to generate.