1# $Id: Makefile.am,v 1.6 2006/08/04 10:40:02 jmc Exp $ 2# Makefile.am for texinfo/doc. 3# Run automake in .. to produce Makefile.in from this. 4# 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. 8# 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. 12 13# Put texinfo.txi first because that's the most important. 14info_TEXINFOS = texinfo.txi info-stnd.texi info.texi 15DISTCLEANFILES = texinfo texinfo-* info*.info* 16 17man_MANS = info.1 infokey.1 install-info.1 makeinfo.1 texindex.1 texi2dvi.1 \ 18 info.5 texinfo.5 19 20# Use the programs built in our distribution, taking account of possible 21# cross-compiling. 22MAKEINFO = $(top_builddir)/$(native_tools)/makeinfo/makeinfo 23INSTALL_INFO = $(top_builddir)/$(native_tools)/util/install-info 24 25TXI_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 27 28# Include our texinfo.tex, not Automake's. 29EXTRA_DIST = epsf.tex pdfcolor.tex texinfo.tex \ 30 fdl.texi \ 31 $(man_MANS) $(TXI_XLATE) 32 33if INSTALL_WARNINGS 34install-data-local: 35 @echo 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." 43 @echo 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." 48endif 49 50texmf_texinfo = $(TEXMF)/tex/texinfo 51texmf_dvips = $(TEXMF)/tex/generic/dvips 52texmf_pdftex_misc = $(TEXMF)/pdftex/plain/misc 53install-tex: 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 61 62# The man pages depend on the --help strings and the version number. 63if MAINTAINER_MODE 64common_mandeps = $(top_srcdir)/configure.ac 65info.1: $(top_srcdir)/info/info.c $(common_mandeps) 66 $(HELP2MAN) --name="read Info documents" `basename $@ .1` >$@ 67install-info.1: $(top_srcdir)/util/install-info.c $(common_mandeps) 68 $(HELP2MAN) --name="update info/dir entries" `basename $@ .1` >$@ 69makeinfo.1: $(top_srcdir)/makeinfo/makeinfo.c $(common_mandeps) 70 $(HELP2MAN) --name="translate Texinfo documents" `basename $@ .1` >$@ 71texi2dvi.1: $(top_srcdir)/util/texi2dvi $(common_mandeps) 72 $(HELP2MAN) --name="print Texinfo documents" `basename $@ .1` >$@ 73texindex.1: $(top_srcdir)/util/texindex.c $(common_mandeps) 74 $(HELP2MAN) --name="sort Texinfo index files" `basename $@ .1` >$@ 75endif 76 77# Do not create info files for distribution. 78dist-info: 79