diff options
author | Alexandre Duret-Lutz <adl@gnu.org> | 2005-08-07 07:42:52 +0000 |
---|---|---|
committer | Alexandre Duret-Lutz <adl@gnu.org> | 2005-08-07 07:42:52 +0000 |
commit | 712c4fc84a5c25bc0aaacf92eaa618236aa33258 (patch) | |
tree | a8aadc369c337b9ab946ac3c547f039ab5bf60b7 | |
parent | f074c30f63df7f787cbea1e1438357f1140cde09 (diff) | |
download | automake-712c4fc84a5c25bc0aaacf92eaa618236aa33258.tar.gz |
* lib/am/texinfos.am (uninstall-info-am): Call install-info only if
the $(infodir) exists.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/am/texinfos.am | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -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 \ |