* lib/am/texinfos.am (uninstall-info-am): Call install-info only if
authorAlexandre Duret-Lutz <adl@gnu.org>
Sun, 7 Aug 2005 07:41:05 +0000 (07:41 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Sun, 7 Aug 2005 07:41:05 +0000 (07:41 +0000)
the $(infodir) exists.

ChangeLog
lib/am/texinfos.am

index ec3fd69..5403ddb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-07  Alexandre Duret-Lutz  <adl@gnu.org>
+
+       * lib/am/texinfos.am (uninstall-info-am): Call install-info only if
+       the $(infodir) exists.
+
 2005-07-31  Stepan Kasal  <kasal@ucw.cz>
 
        * tests/library3.test: Fix a typo which made the test fail.
index 95e5528..046fca7 100644 (file)
@@ -292,7 +292,8 @@ uninstall-info-am:
        @$(PRE_UNINSTALL)
 ## Run two loops here so that we can handle PRE_UNINSTALL and
 ## NORMAL_UNINSTALL correctly.
-       @if (install-info --version && \
+       @if test -d '$(DESTDIR)$(infodir)' && \
+           (install-info --version && \
             install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
          list='$(INFO_DEPS)'; \
          for file in $$list; do \