1*c0f29ca6Sjmc# $Id: Makefile.am,v 1.6 2006/08/04 10:40:02 jmc Exp $ 23aa90977Sespie# Makefile.am for texinfo/doc. 33aa90977Sespie# Run automake in .. to produce Makefile.in from this. 43aa90977Sespie# 53aa90977Sespie# This file is free software; as a special exception the author gives 63aa90977Sespie# unlimited permission to copy and/or distribute it, with or without 73aa90977Sespie# modifications, as long as this notice is preserved. 83aa90977Sespie# 93aa90977Sespie# This program is distributed in the hope that it will be useful, but 103aa90977Sespie# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the 113aa90977Sespie# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 12840175f0Skstailey 133aa90977Sespie# Put texinfo.txi first because that's the most important. 14672dff93Sespieinfo_TEXINFOS = texinfo.txi info-stnd.texi info.texi 153aa90977SespieDISTCLEANFILES = texinfo texinfo-* info*.info* 16672dff93Sespie 171076333cSespieman_MANS = info.1 infokey.1 install-info.1 makeinfo.1 texindex.1 texi2dvi.1 \ 18672dff93Sespie info.5 texinfo.5 19840175f0Skstailey 201076333cSespie# Use the programs built in our distribution, taking account of possible 211076333cSespie# cross-compiling. 221076333cSespieMAKEINFO = $(top_builddir)/$(native_tools)/makeinfo/makeinfo 231076333cSespieINSTALL_INFO = $(top_builddir)/$(native_tools)/util/install-info 24840175f0Skstailey 253aa90977SespieTXI_XLATE = txi-cs.tex txi-de.tex txi-en.tex txi-es.tex txi-fr.tex \ 261076333cSespie txi-it.tex txi-nl.tex txi-no.tex txi-pl.tex txi-pt.tex txi-tr.tex 273aa90977Sespie 28840175f0Skstailey# Include our texinfo.tex, not Automake's. 293aa90977SespieEXTRA_DIST = epsf.tex pdfcolor.tex texinfo.tex \ 301076333cSespie fdl.texi \ 311076333cSespie $(man_MANS) $(TXI_XLATE) 32840175f0Skstailey 331076333cSespieif INSTALL_WARNINGS 34840175f0Skstaileyinstall-data-local: 353aa90977Sespie @echo 361076333cSespie @echo "WARNING: If your texmf tree does not already contain" 371076333cSespie @echo " up-to-date versions, you must install" 381076333cSespie @echo " texinfo.tex and txi-??.tex manually," 393aa90977Sespie @echo " perhaps in TEXMF/tex/texinfo/," 403aa90977Sespie @echo " where TEXMF is a root of your TeX tree." 413aa90977Sespie @echo " See doc/README for some considerations." 423aa90977Sespie @echo " You can run make TEXMF=/your/texmf install-tex to do this." 433aa90977Sespie @echo 443aa90977Sespie @echo " You may also need to install epsf.tex and (if you" 453aa90977Sespie @echo " use pdftex) pdfcolor.tex in TEXMF/tex/generic/dvips" 463aa90977Sespie @echo " and TEXMF/pdftex/plain/misc/pdfcolor.tex respectively," 473aa90977Sespie @echo " if your TeX installation did not include them." 481076333cSespieendif 49840175f0Skstailey 50672dff93Sespietexmf_texinfo = $(TEXMF)/tex/texinfo 51672dff93Sespietexmf_dvips = $(TEXMF)/tex/generic/dvips 523aa90977Sespietexmf_pdftex_misc = $(TEXMF)/pdftex/plain/misc 53672dff93Sespieinstall-tex: 54672dff93Sespie test -n "$(TEXMF)" || (echo "TEXMF must be set." >&2; exit 1) 553aa90977Sespie $(mkinstalldirs) $(DESTDIR)$(texmf_texinfo) $(DESTDIR)$(texmf_dvips) $(DESTDIR)$(texmf_pdftex_misc) 563aa90977Sespie $(INSTALL_DATA) $(srcdir)/texinfo.tex $(DESTDIR)$(texmf_texinfo)/texinfo.tex 573aa90977Sespie $(INSTALL_DATA) $(srcdir)/epsf.tex $(DESTDIR)$(texmf_dvips)/epsf.tex 583aa90977Sespie $(INSTALL_DATA) $(srcdir)/pdfcolor.tex $(DESTDIR)$(texmf_pdftex_misc)/pdfcolor.tex 593aa90977Sespie for f in $(TXI_XLATE); do \ 603aa90977Sespie $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(texmf_texinfo)/$$f; done 61672dff93Sespie 621076333cSespie# The man pages depend on the --help strings and the version number. 631076333cSespieif MAINTAINER_MODE 641076333cSespiecommon_mandeps = $(top_srcdir)/configure.ac 651076333cSespieinfo.1: $(top_srcdir)/info/info.c $(common_mandeps) 661076333cSespie $(HELP2MAN) --name="read Info documents" `basename $@ .1` >$@ 671076333cSespieinstall-info.1: $(top_srcdir)/util/install-info.c $(common_mandeps) 681076333cSespie $(HELP2MAN) --name="update info/dir entries" `basename $@ .1` >$@ 691076333cSespiemakeinfo.1: $(top_srcdir)/makeinfo/makeinfo.c $(common_mandeps) 701076333cSespie $(HELP2MAN) --name="translate Texinfo documents" `basename $@ .1` >$@ 711076333cSespietexi2dvi.1: $(top_srcdir)/util/texi2dvi $(common_mandeps) 721076333cSespie $(HELP2MAN) --name="print Texinfo documents" `basename $@ .1` >$@ 731076333cSespietexindex.1: $(top_srcdir)/util/texindex.c $(common_mandeps) 741076333cSespie $(HELP2MAN) --name="sort Texinfo index files" `basename $@ .1` >$@ 75672dff93Sespieendif 76672dff93Sespie 771076333cSespie# Do not create info files for distribution. 78840175f0Skstaileydist-info: 79