More dependency-tracking bug fixes
[automake.git] / texinfos.am
blob9f1f283b91468f2bd0234b36aca7f9effefae6b8
1 .texi.info:
2         $(MAKEINFO) -I$(srcdir) $<
4 .texi.dvi:
5         TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
7 info:: $(INFO_DEPS)
9 dvi:: $(DVIS)
11 install:: install-info
13 # Look in both . and srcdir because the info pages might have been
14 # rebuilt in the build directory.  Can't cd to srcdir; that might
15 # break a possible install-sh reference.
16 install-info: $(INFO_DEPS)
17         $(top_srcdir)/mkinstalldirs $(infodir)
18         for file in $(INFO_DEPS); do            \
19           if test -f $$file; then               \
20             d=.;                                \
21           else                                  \
22             d=${srcdir};                        \
23           fi;                                   \
24           for ifile in $${file}*; do            \
25             $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; \
26           done;                                 \
27           if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
28             install-info --infodir=$(infodir) $$d/$$file; \
29           fi;                                   \
30         done
32 uninstall:: uninstall-info
34 uninstall-info:
35         cd $(srcdir); for file in *.info*; do
36           rm -f $(infodir)/$$file; \
37         done