install:: install-info
+# FIXME: not sure what to do about install-info program. We look in
+# `pwd` because there might be a newer file there than in srcdir.
install-info: $(INFO_DEPS)
$(top_srcdir)/mkinstalldirs $(infodir)
- cd $(srcdir); for file in *.info*; do \
- $(INSTALL_DATA) $$file $(infodir)/$$file; \
+ here=`pwd`; cd $(srcdir); for file in *.info*; do \
+ if test -f $$here/$$file; then \
+ d=$here; \
+ else \
+ d=. \
+ fi; \
+ $(INSTALL_DATA) $$d/$$file $(infodir)/$$file; \
+ if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
+ install-info --infodir=$(infodir) $$d/$$file; \
+ else \
+ true; \
+ fi; \
done
uninstall:: uninstall-info
install:: install-info
+# FIXME: not sure what to do about install-info program. We look in
+# `pwd` because there might be a newer file there than in srcdir.
install-info: $(INFO_DEPS)
$(top_srcdir)/mkinstalldirs $(infodir)
- cd $(srcdir); for file in *.info*; do \
- $(INSTALL_DATA) $$file $(infodir)/$$file; \
+ here=`pwd`; cd $(srcdir); for file in *.info*; do \
+ if test -f $$here/$$file; then \
+ d=$here; \
+ else \
+ d=. \
+ fi; \
+ $(INSTALL_DATA) $$d/$$file $(infodir)/$$file; \
+ if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
+ install-info --infodir=$(infodir) $$d/$$file; \
+ else \
+ true; \
+ fi; \
done
uninstall:: uninstall-info