~ubuntu-branches/ubuntu/maverick/texinfo/maverick

« back to all changes in this revision

Viewing changes to doc/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2005-10-28 15:10:30 UTC
  • mto: (2.1.1 dapper) (3.1.4 hardy)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20051028151030-9nsf2s2k2z3fktjt
Tags: upstream-4.8
ImportĀ upstreamĀ versionĀ 4.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: Makefile.am,v 1.35 2002/02/14 17:26:02 karl Exp $
2
 
# Makefile.am for texinfo/emacs.
 
1
# $Id: Makefile.am,v 1.20 2004/11/18 01:10:59 karl Exp $
 
2
# Makefile.am for texinfo/doc.
3
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.
4
12
 
5
13
# Put texinfo.txi first because that's the most important.
6
14
info_TEXINFOS = texinfo.txi info-stnd.texi info.texi
7
15
DISTCLEANFILES = texinfo texinfo-* info*.info*
8
16
 
9
 
man_MANS = info.1 install-info.1 makeinfo.1 texindex.1 texi2dvi.1 \
 
17
man_MANS = info.1 infokey.1 install-info.1 makeinfo.1 texindex.1 texi2dvi.1 \
10
18
           info.5 texinfo.5
11
 
HELP2MAN = help2man
12
 
noinst_SCRIPTS = $(HELP2MAN)
13
19
 
14
 
# Use the programs built in our distribution.
15
 
MAKEINFO = ../makeinfo/makeinfo
16
 
INSTALL_INFO = ../util/install-info
 
20
# Use the programs built in our distribution, taking account of possible
 
21
# cross-compiling.
 
22
MAKEINFO = $(top_builddir)/$(native_tools)/makeinfo/makeinfo
 
23
INSTALL_INFO = $(top_builddir)/$(native_tools)/util/install-info
17
24
 
18
25
TXI_XLATE = txi-cs.tex txi-de.tex txi-en.tex txi-es.tex txi-fr.tex \
19
 
            txi-nl.tex txi-no.tex txi-pt.tex
 
26
            txi-it.tex txi-nl.tex txi-no.tex txi-pl.tex txi-pt.tex txi-tr.tex
20
27
 
21
28
# Include our texinfo.tex, not Automake's.
22
 
EXTRA_DIST = macro.texi userdoc.texi epsf.tex pdfcolor.tex texinfo.tex \
23
 
             $(man_MANS) $(noinst_SCRIPTS) $(TXI_XLATE)
 
29
EXTRA_DIST = epsf.tex pdfcolor.tex texinfo.tex \
 
30
             fdl.texi \
 
31
             $(man_MANS) $(TXI_XLATE)
24
32
 
 
33
if INSTALL_WARNINGS
25
34
install-data-local:
26
35
        @echo
27
 
        @echo "WARNING: You must install texinfo.tex and txi-??.tex manually,"
 
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,"
28
39
        @echo "         perhaps in TEXMF/tex/texinfo/,"
29
40
        @echo "         where TEXMF is a root of your TeX tree."
30
41
        @echo "         See doc/README for some considerations."
34
45
        @echo "         use pdftex) pdfcolor.tex in TEXMF/tex/generic/dvips"
35
46
        @echo "         and TEXMF/pdftex/plain/misc/pdfcolor.tex respectively,"
36
47
        @echo "         if your TeX installation did not include them."
 
48
endif
37
49
 
38
50
texmf_texinfo = $(TEXMF)/tex/texinfo
39
51
texmf_dvips = $(TEXMF)/tex/generic/dvips
40
52
texmf_pdftex_misc = $(TEXMF)/pdftex/plain/misc
41
53
install-tex:
42
54
        test -n "$(TEXMF)" || (echo "TEXMF must be set." >&2; exit 1)
43
 
        $(mkinstalldirs) $(texmf_texinfo) $(texmf_dvips) $(texmf_pdftex_misc)
44
 
        $(INSTALL_DATA) $(srcdir)/texinfo.tex $(texmf_texinfo)/texinfo.tex
45
 
        $(INSTALL_DATA) $(srcdir)/epsf.tex $(texmf_dvips)/epsf.tex
46
 
        $(INSTALL_DATA) $(srcdir)/pdfcolor.tex $(texmf_pdftex_misc)/epsf.tex
 
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
47
59
        for f in $(TXI_XLATE); do \
48
 
          $(INSTALL_DATA) $(srcdir)/$$f $(texmf_texinfo)/$$f; done
 
60
          $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(texmf_texinfo)/$$f; done
49
61
 
50
 
# Don't want to run help2man at every installation.
51
 
if TEXINFO_MAINT
52
 
info.1: ../info/ginfo $(HELP2MAN)
53
 
        $(HELP2MAN) --name="read Info documents" $< >$@
54
 
install-info.1: $(INSTALL_INFO) $(HELP2MAN)
55
 
        $(HELP2MAN) --name="update info/dir entries" $< >$@
56
 
makeinfo.1: $(MAKEINFO) $(HELP2MAN)
57
 
        $(HELP2MAN) --name="translate Texinfo documents" $< >$@
58
 
texi2dvi.1: ../util/texi2dvi $(HELP2MAN)
59
 
        $(HELP2MAN) --name="print Texinfo documents" $< >$@
60
 
texindex.1: ../util/texindex $(HELP2MAN)
61
 
        $(HELP2MAN) --name="sort Texinfo index files" $< >$@
 
62
# The man pages depend on the --help strings and the version number.
 
63
if MAINTAINER_MODE
 
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` >$@
62
77
endif
63
78
 
64
 
# Do not create info files for distribution, but do create man pages.
 
79
# Do not create info files for distribution.
65
80
dist-info:
66
 
 
67
 
# Do not try to build the info files in $(srcdir),
68
 
# since we don't distribute them.
69
 
.texi.info:
70
 
        $(MAKEINFO) -I$(srcdir) `echo $< | sed 's,.*/,,'`
71
 
texinfo: $(srcdir)/texinfo.txi
72
 
        $(MAKEINFO) -I$(srcdir) texinfo.txi