1 # Id: Makefile.am,v 1.20 2004/11/18 01:10:59 karl Exp
2 # Makefile.am for texinfo/doc.
3 # Run automake in .. to produce Makefile.in from this.
5 # This file is free software; as a special exception the author gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
11 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 # Put texinfo.txi first because that's the most important.
14 info_TEXINFOS = texinfo.txi info-stnd.texi info.texi
15 DISTCLEANFILES = texinfo texinfo-* info*.info*
17 man_MANS = info.1 infokey.1 install-info.1 makeinfo.1 texindex.1 texi2dvi.1 \
20 # Use the programs built in our distribution, taking account of possible
22 MAKEINFO = $(top_builddir)/$(native_tools)/makeinfo/makeinfo
23 INSTALL_INFO = $(top_builddir)/$(native_tools)/util/install-info
25 TXI_XLATE = txi-cs.tex txi-de.tex txi-en.tex txi-es.tex txi-fr.tex \
26 txi-it.tex txi-nl.tex txi-no.tex txi-pl.tex txi-pt.tex txi-tr.tex
28 # Include our texinfo.tex, not Automake's.
29 EXTRA_DIST = epsf.tex pdfcolor.tex texinfo.tex \
31 $(man_MANS) $(TXI_XLATE)
36 @echo "WARNING: If your texmf tree does not already contain"
37 @echo " up-to-date versions, you must install"
38 @echo " texinfo.tex and txi-??.tex manually,"
39 @echo " perhaps in TEXMF/tex/texinfo/,"
40 @echo " where TEXMF is a root of your TeX tree."
41 @echo " See doc/README for some considerations."
42 @echo " You can run make TEXMF=/your/texmf install-tex to do this."
44 @echo " You may also need to install epsf.tex and (if you"
45 @echo " use pdftex) pdfcolor.tex in TEXMF/tex/generic/dvips"
46 @echo " and TEXMF/pdftex/plain/misc/pdfcolor.tex respectively,"
47 @echo " if your TeX installation did not include them."
50 texmf_texinfo = $(TEXMF)/tex/texinfo
51 texmf_dvips = $(TEXMF)/tex/generic/dvips
52 texmf_pdftex_misc = $(TEXMF)/pdftex/plain/misc
54 test -n "$(TEXMF)" || (echo "TEXMF must be set." >&2; exit 1)
55 $(mkinstalldirs) $(DESTDIR)$(texmf_texinfo) $(DESTDIR)$(texmf_dvips) $(DESTDIR)$(texmf_pdftex_misc)
56 $(INSTALL_DATA) $(srcdir)/texinfo.tex $(DESTDIR)$(texmf_texinfo)/texinfo.tex
57 $(INSTALL_DATA) $(srcdir)/epsf.tex $(DESTDIR)$(texmf_dvips)/epsf.tex
58 $(INSTALL_DATA) $(srcdir)/pdfcolor.tex $(DESTDIR)$(texmf_pdftex_misc)/pdfcolor.tex
59 for f in $(TXI_XLATE); do \
60 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(texmf_texinfo)/$$f; done
62 # The man pages depend on the --help strings and the version number.
64 common_mandeps = $(top_srcdir)/configure.ac
65 info.1: $(top_srcdir)/info/info.c $(common_mandeps)
66 $(HELP2MAN) --name="read Info documents" `basename $@ .1` >$@
67 infokey.1: $(top_srcdir)/info/infokey.c $(common_mandeps)
68 $(HELP2MAN) --name="compile customizations for Info" `basename $@ .1` >$@
69 install-info.1: $(top_srcdir)/util/install-info.c $(common_mandeps)
70 $(HELP2MAN) --name="update info/dir entries" `basename $@ .1` >$@
71 makeinfo.1: $(top_srcdir)/makeinfo/makeinfo.c $(common_mandeps)
72 $(HELP2MAN) --name="translate Texinfo documents" `basename $@ .1` >$@
73 texi2dvi.1: $(top_srcdir)/util/texi2dvi $(common_mandeps)
74 $(HELP2MAN) --name="print Texinfo documents" `basename $@ .1` >$@
75 texindex.1: $(top_srcdir)/util/texindex.c $(common_mandeps)
76 $(HELP2MAN) --name="sort Texinfo index files" `basename $@ .1` >$@
79 # Do not create info files for distribution.