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