]> code.delx.au - gnu-emacs/blob - doc/lispintro/Makefile.in
Rename infodir to buildinfodir in doc/*/Makefile.in (bug#11737)
[gnu-emacs] / doc / lispintro / Makefile.in
1 #### Makefile for the Emacs Lisp Introduction manual
2
3 # Copyright (C) 1994-1999, 2001-2012 Free Software Foundation, Inc.
4
5 # This file is part of GNU Emacs.
6
7 # GNU Emacs is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
11
12 # GNU Emacs is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19
20 SHELL = /bin/sh
21
22 srcdir = @srcdir@
23 version=@version@
24
25 buildinfodir = $(srcdir)/../../info
26 # Directory with the (customized) texinfo.tex file.
27 texinfodir = $(srcdir)/../misc
28
29 MAKEINFO = @MAKEINFO@
30 MAKEINFO_OPTS = --force -I $(srcdir)
31 TEXI2DVI = texi2dvi
32 TEXI2PDF = texi2pdf
33 DVIPS = dvips
34
35 ENVADD = TEXINPUTS="$(srcdir):$(texinfodir):$(TEXINPUTS)" \
36 MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
37
38 mkinfodir = @test -d ${buildinfodir} || mkdir ${buildinfodir} || test -d ${buildinfodir}
39
40 .PHONY: info dvi html pdf ps
41
42 info: ${buildinfodir}/eintr
43
44 dvi: emacs-lisp-intro.dvi
45 html: emacs-lisp-intro.html
46 pdf: emacs-lisp-intro.pdf
47 ps: emacs-lisp-intro.ps
48
49 # The file name eintr must fit within 5 characters, to allow for
50 # -NN extensions to fit into DOS 8+3 limits without clashing.
51 # Note: "<" is not portable in ordinary make rules.
52 ${buildinfodir}/eintr: ${srcdir}/emacs-lisp-intro.texi
53 $(mkinfodir)
54 $(MAKEINFO) $(MAKEINFO_OPTS) -o $@ ${srcdir}/emacs-lisp-intro.texi
55
56 emacs-lisp-intro.dvi: ${srcdir}/emacs-lisp-intro.texi
57 $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-lisp-intro.texi
58
59 emacs-lisp-intro.ps: emacs-lisp-intro.dvi
60 $(DVIPS) -o $@ emacs-lisp-intro.dvi
61
62 emacs-lisp-intro.pdf: ${srcdir}/emacs-lisp-intro.texi
63 $(ENVADD) $(TEXI2PDF) ${srcdir}/emacs-lisp-intro.texi
64
65 emacs-lisp-intro.html: ${srcdir}/emacs-lisp-intro.texi
66 $(MAKEINFO) $(MAKEINFO_OPTS) --html -o $@ ${srcdir}/emacs-lisp-intro.texi
67
68 .PHONY: mostlyclean clean distclean maintainer-clean infoclean
69
70 mostlyclean:
71 rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \
72 *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs
73
74 clean: mostlyclean
75 rm -f emacs-lisp-intro.dvi emacs-lisp-intro.pdf emacs-lisp-intro.ps
76 rm -rf emacs-lisp-intro.html/
77 rm -f emacs-lispintro-${version}.tar*
78
79 distclean: clean
80
81 infoclean:
82 -cd $(buildinfodir) && rm -f eintr eintr-[1-9]
83
84 maintainer-clean: distclean infoclean
85
86 .PHONY: dist
87
88 dist:
89 rm -rf emacs-lispintro-${version}
90 mkdir emacs-lispintro-${version}
91 cp ${srcdir}/*.texi ${srcdir}/*.eps ${srcdir}/*.pdf \
92 ${texinfodir}/texinfo.tex \
93 ${srcdir}/ChangeLog* ${srcdir}/README emacs-lispintro-${version}/
94 sed -e 's/@sr[c]dir@/./' -e 's/^\(texinfodir *=\).*/\1 ./' \
95 -e 's/^\(buildinfodir *=\).*/\1 ./' \
96 -e 's/^\(clean:.*\)/\1 infoclean/' \
97 -e "s/@ver[s]ion@/${version}/" \
98 ${srcdir}/Makefile.in > emacs-lispintro-${version}/Makefile
99 tar -cf emacs-lispintro-${version}.tar emacs-lispintro-${version}
100 rm -rf emacs-lispintro-${version}
101
102 ### Makefile ends here