]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Makefile.in (install-info): Only try to update the info directory file if it exists...
authorGerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
Sat, 25 Jul 1998 22:30:55 +0000 (16:30 -0600)
committerJeff Law <law@gcc.gnu.org>
Sat, 25 Jul 1998 22:30:55 +0000 (16:30 -0600)
8
        * Makefile.in (install-info): Only try to update the info
        directory file if it exists in the first place.

From-SVN: r21385

gcc/Makefile.in

index f81dd431f26261fe1ebe7b6f01d0d02150a7711a..8687192e3bdd5ab50a5e977863493ac19b01b8bd 100644 (file)
@@ -2384,9 +2384,11 @@ install-info: doc installdirs lang.install-info
            $(INSTALL_DATA) $$f $(infodir)/$$f; \
        done
        -if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
+         if [ -f $(infodir)/dir ] ; then \
            for f in cpp.info gcc.info; do \
                install-info --dir-file=$(infodir)/dir $(infodir)/$$f; \
            done; \
+         else true; fi; \
        else true; fi;
        -chmod a-x $(infodir)/cpp.info* $(infodir)/gcc.info*