]> code.delx.au - gnu-emacs/blob - doc/lispintro/Makefile.in
46325a327a5401e48e6f9f73e4a5971dd9f531ff
[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, 2011
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@
32 MAKEINFO_OPTS = --force -I $(srcdir)
33 TEXI2DVI = texi2dvi
34 TEXI2PDF = texi2pdf
35 DVIPS = dvips
36
37 ENVADD = TEXINPUTS="$(srcdir):$(texinfodir):$(TEXINPUTS)" \
38 MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
39
40 mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir}
41
42 .PHONY: info dvi html pdf ps
43
44 info: ${infodir}/eintr
45
46 dvi: emacs-lisp-intro.dvi
47 html: emacs-lisp-intro.html
48 pdf: emacs-lisp-intro.pdf
49 ps: emacs-lisp-intro.ps
50
51 # The file name eintr must fit within 5 characters, to allow for
52 # -NN extensions to fit into DOS 8+3 limits without clashing.
53 ${infodir}/eintr: ${srcdir}/emacs-lisp-intro.texi
54 $(mkinfodir)
55 $(MAKEINFO) $(MAKEINFO_OPTS) -o $@ $<
56
57 emacs-lisp-intro.dvi: ${srcdir}/emacs-lisp-intro.texi
58 $(ENVADD) $(TEXI2DVI) $<
59
60 emacs-lisp-intro.ps: emacs-lisp-intro.dvi
61 $(DVIPS) -o $@ $<
62
63 emacs-lisp-intro.pdf: ${srcdir}/emacs-lisp-intro.texi
64 $(ENVADD) $(TEXI2PDF) $<
65
66 emacs-lisp-intro.html: ${srcdir}/emacs-lisp-intro.texi
67 $(MAKEINFO) $(MAKEINFO_OPTS) --html -o $@ $<
68
69 .PHONY: mostlyclean clean distclean maintainer-clean infoclean
70
71 mostlyclean:
72 rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \
73 *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs
74
75 clean: mostlyclean
76 rm -f emacs-lisp-intro.dvi emacs-lisp-intro.pdf emacs-lisp-intro.ps
77 rm -rf emacs-lisp-intro.html/
78 rm -f emacs-lispintro-${version}.tar*
79
80 distclean: clean
81
82 infoclean:
83 -cd $(infodir) && rm -f eintr eintr-[1-9]
84
85 maintainer-clean: distclean infoclean
86
87 .PHONY: dist
88
89 dist:
90 rm -rf emacs-lispintro-${version}
91 mkdir emacs-lispintro-${version}
92 cp ${srcdir}/*.texi ${srcdir}/*.eps ${srcdir}/*.pdf \
93 ${texinfodir}/texinfo.tex \
94 ${srcdir}/ChangeLog* ${srcdir}/README emacs-lispintro-${version}/
95 sed -e 's/@sr[c]dir@/./' -e 's/^\(texinfodir *=\).*/\1 ./' \
96 -e 's/^\(infodir *=\).*/\1 ./' -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