From a8d7cf03b27916674a82e665cee6bb7d6e151530 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Sun, 7 Aug 2005 07:41:05 +0000 Subject: [PATCH] * lib/am/texinfos.am (uninstall-info-am): Call install-info only if the $(infodir) exists. --- ChangeLog | 5 +++++ lib/am/texinfos.am | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ec3fd6937..5403ddb28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-08-07 Alexandre Duret-Lutz + + * lib/am/texinfos.am (uninstall-info-am): Call install-info only if + the $(infodir) exists. + 2005-07-31 Stepan Kasal * tests/library3.test: Fix a typo which made the test fail. diff --git a/lib/am/texinfos.am b/lib/am/texinfos.am index 95e5528ce..046fca781 100644 --- a/lib/am/texinfos.am +++ b/lib/am/texinfos.am @@ -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 \ -- 2.47.2