From 1e8ce9aa8b9141960b52a55f870b1f7d47a896d4 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 4 Oct 1996 03:04:09 +0000 Subject: [PATCH] install-info --remove --- ChangeLog | 2 ++ Makefile.in | 6 ------ lib/am/texinfos.am | 8 ++++++-- texinfos.am | 8 ++++++-- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 93d33cfd..a802ddfa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ Thu Oct 3 20:11:16 1996 Tom Tromey + * texinfos.am (uninstall-info): Run install-info --remove. + * automake.in (read_am_file): Define all variables after reading .am file. Test vpath.test. Reported by Anthony Green. diff --git a/Makefile.in b/Makefile.in index 210296b5..3e6bd043 100644 --- a/Makefile.in +++ b/Makefile.in @@ -199,12 +199,6 @@ install-info: $(INFO_DEPS) else : ; fi; \ done; \ done - $(POST_INSTALL) - if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \ - for file in $(INFO_DEPS); do \ - install-info --info-dir=$(infodir) $$file; \ - done; \ - else : ; fi uninstall-info: cd $(srcdir) && for file in *.info*; do \ diff --git a/lib/am/texinfos.am b/lib/am/texinfos.am index 964779c5..46992950 100644 --- a/lib/am/texinfos.am +++ b/lib/am/texinfos.am @@ -57,6 +57,10 @@ install-info: $(INFO_DEPS) else : ; fi uninstall-info: - cd $(srcdir) && for file in *.info*; do \ - rm -f $(infodir)/$$file; \ + if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \ + ii=yes; \ + else ii=; fi; \ + for file in $(INFO_DEPS); do \ + (cd $(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \ + test -z $ii || install-info --info-dir=$(infodir) --remove $$file; \ done diff --git a/texinfos.am b/texinfos.am index 964779c5..46992950 100644 --- a/texinfos.am +++ b/texinfos.am @@ -57,6 +57,10 @@ install-info: $(INFO_DEPS) else : ; fi uninstall-info: - cd $(srcdir) && for file in *.info*; do \ - rm -f $(infodir)/$$file; \ + if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \ + ii=yes; \ + else ii=; fi; \ + for file in $(INFO_DEPS); do \ + (cd $(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \ + test -z $ii || install-info --info-dir=$(infodir) --remove $$file; \ done -- 2.43.5