b57ac19b4164a8dc8141610bc124dabdbd809301
[platform/upstream/automake.git] / lib / am / texinfos.am
1 .texi.info:
2         $(MAKEINFO) -I$(srcdir) $<
3
4 .texi.dvi:
5         TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
6
7 ## Look in both . and srcdir because the info pages might have been
8 ## rebuilt in the build directory.  Can't cd to srcdir; that might
9 ## break a possible install-sh reference.
10 install-info: $(INFO_DEPS)
11         $(top_srcdir)/mkinstalldirs $(infodir)
12         for file in $(INFO_DEPS); do            \
13 ## This ${...} is in the shell, not in make.
14           for ifile in $(srcdir)/$${file}*; do  \
15             $(INSTALL_DATA) $(srcdir)/$$ifile $(infodir)/$$ifile; \
16           done;                                 \
17 ## We need the 'else' because in some broken versions of sh 'if' will
18 ## return false if the test fails.  We use ':' because the GNU
19 ## standards prohibit us from using 'true'.
20 ## FIXME no one has install-info, so for now we just comment it out.
21 ##        if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
22 ##          install-info --infodir=$(infodir) $$d/$$file; \
23 ##        else :; fi;                           \
24         done
25
26 uninstall-info:
27         cd $(srcdir) && for file in *.info*; do \
28           rm -f $(infodir)/$$file; \
29         done