2005-07-25 Stepan Kasal * lib/am/texinfos.am (uninstall-info-am): Call install-info only if the $(infodir) exists. Index: lib/am/texinfos.am =================================================================== RCS file: /cvsroot/automake/automake/lib/am/texinfos.am,v retrieving revision 1.117 diff -u -r1.117 texinfos.am --- lib/am/texinfos.am 24 May 2005 16:40:18 -0000 1.117 +++ lib/am/texinfos.am 25 Jul 2005 13:55:42 -0000 @@ -292,7 +292,8 @@ @$(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 \