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