From: Alexandre Duret-Lutz Date: Sun, 7 Aug 2005 07:41:05 +0000 (+0000) Subject: * lib/am/texinfos.am (uninstall-info-am): Call install-info only if X-Git-Tag: Release-1-9b~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8d7cf03b27916674a82e665cee6bb7d6e151530;p=thirdparty%2Fautomake.git * lib/am/texinfos.am (uninstall-info-am): Call install-info only if the $(infodir) exists. --- 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 \