Don't use ${
[automake.git] / texinfos.am
blob489f6efa7a853d888cb9a0c51215698652b71782
1 .texi.info:
2         $(MAKEINFO) -I$(srcdir) $<
4 .texi.dvi:
5         TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
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           if test -f $$file; then               \
14             d=.;                                \
15           else                                  \
16             d=$(srcdir);                        \
17           fi;                                   \
18 ## This ${...} is in the shell, not in make.
19           for ifile in $${file}*; do            \
20             $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; \
21           done;                                 \
22 ## We need the 'else' because in some broken versions of sh 'if' will
23 ## return false if the test fails.  We use ':' because the GNU
24 ## standards prohibit us from using 'true'.
25 ## FIXME no one has install-info, so for now we just comment it out.
26 ##        if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
27 ##          install-info --infodir=$(infodir) $$d/$$file; \
28 ##        else :; fi;                           \
29         done
31 uninstall-info:
32         cd $(srcdir) && for file in *.info*; do
33           rm -f $(infodir)/$$file; \
34         done