summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Duret-Lutz <adl@gnu.org>2005-08-07 07:42:52 +0000
committerAlexandre Duret-Lutz <adl@gnu.org>2005-08-07 07:42:52 +0000
commit712c4fc84a5c25bc0aaacf92eaa618236aa33258 (patch)
treea8aadc369c337b9ab946ac3c547f039ab5bf60b7
parentf074c30f63df7f787cbea1e1438357f1140cde09 (diff)
downloadautomake-712c4fc84a5c25bc0aaacf92eaa618236aa33258.tar.gz
* lib/am/texinfos.am (uninstall-info-am): Call install-info only if
the $(infodir) exists.
-rw-r--r--ChangeLog5
-rw-r--r--lib/am/texinfos.am3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f82fb6c42..1a9cbe1f2 100644
--- 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-27 Alexandre Duret-Lutz <adl@gnu.org>
* doc/automake.texi (Linking, Program and Library Variables):
diff --git a/lib/am/texinfos.am b/lib/am/texinfos.am
index ba8dd530f..c79140c4a 100644
--- a/lib/am/texinfos.am
+++ b/lib/am/texinfos.am
@@ -201,7 +201,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 \