Quieten emacs-devel.
[bpt/emacs.git] / 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 VPATH = @srcdir@
26 version=@version@
27
28 infodir = ../../info
29 # Directory with the (customized) texinfo.tex file.
30 texinfodir = $(srcdir)/../misc
31
32 MAKEINFO = makeinfo
33 TEXI2DVI = texi2dvi
34 TEXI2PDF = texi2pdf
35 DVIPS = dvips
36
37 mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir}
38
39 .SUFFIXES: .dvi .ps .texi
40
41 .PHONY: info dvi html pdf
42
43 info: ${infodir}/eintr
44
45 dvi: emacs-lisp-intro.dvi
46 html: emacs-lisp-intro.html
47 pdf: emacs-lisp-intro.pdf
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 ${infodir}/eintr: ${srcdir}/emacs-lisp-intro.texi
52 $(mkinfodir)
53 cd $(srcdir); $(MAKEINFO) emacs-lisp-intro.texi -o $@
54
55 emacs-lisp-intro.dvi: ${srcdir}/emacs-lisp-intro.texi
56 $(TEXI2DVI) -I $(srcdir) -I $(texinfodir) $^
57
58 emacs-lisp-intro.pdf: ${srcdir}/emacs-lisp-intro.texi
59 $(TEXI2PDF) -I $(srcdir) -I $(texinfodir) $^
60
61 emacs-lisp-intro.html: ${srcdir}/emacs-lisp-intro.texi
62 $(MAKEINFO) --html -o $@ $^
63
64 .dvi.ps:
65 $(DVIPS) $< -o $@
66
67 .PHONY: mostlyclean clean distclean maintainer-clean infoclean
68
69 mostlyclean:
70 rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \
71 *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs
72
73 clean: mostlyclean
74 rm -f emacs-lisp-intro.dvi emacs-lisp-intro.pdf
75 rm -rf emacs-lisp-intro.html/
76 rm -f emacs-lispintro-${version}.tar*
77
78 distclean: clean
79
80 infoclean:
81 -cd $(srcdir) && cd $(infodir) && rm -f eintr eintr-[1-9]
82
83 maintainer-clean: distclean infoclean
84
85 .PHONY: dist
86
87 dist:
88 rm -rf emacs-lispintro-${version}
89 mkdir emacs-lispintro-${version}
90 cp ${srcdir}/*.texi ${srcdir}/*.eps ${srcdir}/*.pdf \
91 ${texinfodir}/texinfo.tex \
92 ${srcdir}/ChangeLog* ${srcdir}/README emacs-lispintro-${version}/
93 sed -e 's/@sr[c]dir@/./' -e 's/\(texinfodir *=\).*/\1 ./' \
94 -e 's/\(infodir *=\).*/\1 ./' -e 's/^\(clean:.*\)/\1 infoclean/' \
95 -e "s/@ver[s]ion@/${version}/" \
96 ${srcdir}/Makefile.in > emacs-lispintro-${version}/Makefile
97 tar -cf emacs-lispintro-${version}.tar emacs-lispintro-${version}
98 rm -rf emacs-lispintro-${version}
99
100 ### Makefile ends here