1 #### Makefile for the Emacs Lisp Introduction manual
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.
7 # This file is part of GNU Emacs.
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.
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.
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/>.
27 infodir = $(srcdir)/..
/..
/info
28 # Directory with the (customized) texinfo.tex file.
29 texinfodir
= $(srcdir)/..
/misc
31 MAKEINFO
= makeinfo --force -I
$(srcdir)
36 mkinfodir
= @
test -d
${infodir} || mkdir
${infodir} ||
test -d
${infodir}
38 .PHONY
: info dvi html pdf ps
40 info: ${infodir}/eintr
42 dvi: emacs-lisp-intro.
dvi
43 html
: emacs-lisp-intro.html
44 pdf
: emacs-lisp-intro.pdf
45 ps
: emacs-lisp-intro.ps
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
53 emacs-lisp-intro.
dvi: ${srcdir}/emacs-lisp-intro.texi
54 $(TEXI2DVI
) -I
$(srcdir) -I
$(texinfodir
) $<
56 emacs-lisp-intro.ps
: emacs-lisp-intro.
dvi
59 emacs-lisp-intro.pdf
: ${srcdir}/emacs-lisp-intro.texi
60 $(TEXI2PDF
) -I
$(srcdir) -I
$(texinfodir
) $<
62 emacs-lisp-intro.html
: ${srcdir}/emacs-lisp-intro.texi
63 $(MAKEINFO
) --html
-o
$@
$<
65 .PHONY
: mostlyclean clean distclean maintainer-clean infoclean
68 rm -f
*.aux
*.log
*.toc
*.cp
*.cps
*.fn
*.fns
*.ky
*.kys \
69 *.op
*.ops
*.pg
*.pgs
*.tp
*.tps
*.vr
*.vrs
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*
79 -cd
$(infodir) && rm -f eintr eintr-
[1-9]
81 maintainer-clean
: distclean infoclean
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}
98 ### Makefile ends here