follow GNU standards
[platform/upstream/automake.git] / texinfos.am
index 53d93bb..85bdba8 100644 (file)
@@ -101,13 +101,19 @@ install-info-am: $(INFO_DEPS)
        else : ; fi
 
 uninstall-info:
+       $(PRE_UNINSTALL)
+## Run two loops here so that we can handle PRE_UNINSTALL and
+## NORMAL_UNINSTALL correctly.
        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
+       $(NORMAL_UNINSTALL)
+       for file in $(INFO_DEPS); do \
+         (cd $(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
+       done
 
 dist-info: $(INFO_DEPS)
        for base in $(INFO_DEPS); do \