1 #### Makefile for the Emacs Lisp Introduction manual
3 # Copyright (C) 1994-1999, 2001-2012 Free Software Foundation, Inc.
5 # This file is part of GNU Emacs.
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.
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.
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/>.
25 infodir = $(srcdir)/..
/..
/info
26 # Directory with the (customized) texinfo.tex file.
27 texinfodir
= $(srcdir)/..
/misc
30 # Options used only when making info output.
34 MAKEINFO_OPTS
= --force -I
$(srcdir)
39 ENVADD
= TEXINPUTS
="$(srcdir):$(texinfodir):$(TEXINPUTS)" \
40 MAKEINFO
="$(MAKEINFO) $(MAKEINFO_OPTS)"
42 mkinfodir
= @
test -d
${infodir} || mkdir
${infodir} ||
test -d
${infodir}
44 .PHONY
: info dvi html pdf ps
46 info: ${infodir}/eintr
$(INFO_EXT
)
48 dvi: emacs-lisp-intro.
dvi
49 html
: emacs-lisp-intro.html
50 pdf
: emacs-lisp-intro.pdf
51 ps
: emacs-lisp-intro.ps
53 # The file name eintr must fit within 5 characters, to allow for
54 # -NN extensions to fit into DOS 8+3 limits without clashing.
55 # Note: "<" is not portable in ordinary make rules.
56 ${infodir}/eintr
$(INFO_EXT
): ${srcdir}/emacs-lisp-intro.texi
58 $(MAKEINFO
) $(MAKEINFO_OPTS
) $(INFO_OPTS
) -o
$@
${srcdir}/emacs-lisp-intro.texi
60 emacs-lisp-intro.
dvi: ${srcdir}/emacs-lisp-intro.texi
61 $(ENVADD
) $(TEXI2DVI
) ${srcdir}/emacs-lisp-intro.texi
63 emacs-lisp-intro.ps
: emacs-lisp-intro.
dvi
64 $(DVIPS
) -o
$@ emacs-lisp-intro.
dvi
66 emacs-lisp-intro.pdf
: ${srcdir}/emacs-lisp-intro.texi
67 $(ENVADD
) $(TEXI2PDF
) ${srcdir}/emacs-lisp-intro.texi
69 emacs-lisp-intro.html
: ${srcdir}/emacs-lisp-intro.texi
70 $(MAKEINFO
) $(MAKEINFO_OPTS
) --html
-o
$@
${srcdir}/emacs-lisp-intro.texi
72 .PHONY
: mostlyclean clean distclean maintainer-clean infoclean
75 rm -f
*.aux
*.log
*.toc
*.cp
*.cps
*.fn
*.fns
*.ky
*.kys \
76 *.op
*.ops
*.pg
*.pgs
*.tp
*.tps
*.vr
*.vrs
79 rm -f emacs-lisp-intro.
dvi emacs-lisp-intro.pdf emacs-lisp-intro.ps
80 rm -rf emacs-lisp-intro.html
/
81 rm -f emacs-lispintro-
${version}.
tar*
86 -cd
$(infodir) && rm -f eintr
$(INFO_EXT
) eintr
$(INFO_EXT
)-[1-9]
88 maintainer-clean
: distclean infoclean
93 rm -rf emacs-lispintro-
${version}
94 mkdir emacs-lispintro-
${version}
95 cp
${srcdir}/*.texi
${srcdir}/*.eps
${srcdir}/*.pdf \
96 ${texinfodir}/texinfo.
tex \
97 ${srcdir}/ChangeLog
* ${srcdir}/README emacs-lispintro-
${version}/
98 sed
-e
's/@sr[c]dir@/./' -e
's/^\(texinfodir *=\).*/\1 ./' \
99 -e
's/^\(infodir *=\).*/\1 ./' -e
's/^\(clean:.*\)/\1 infoclean/' \
100 -e
"s/@ver[s]ion@/${version}/" \
101 ${srcdir}/Makefile.in
> emacs-lispintro-
${version}/Makefile
102 tar -cf emacs-lispintro-
${version}.
tar emacs-lispintro-
${version}
103 rm -rf emacs-lispintro-
${version}
105 ### Makefile ends here