Refill some long/short copyright headers.
[bpt/emacs.git] / doc / lispintro / Makefile.in
CommitLineData
8cda6f8f
GM
1#### Makefile for the Emacs Lisp Introduction manual
2
95df8112 3# Copyright (C) 1994-1999, 2001-2011 Free Software Foundation, Inc.
8cda6f8f
GM
4
5# This file is part of GNU Emacs.
6
8ae3715e 7# GNU Emacs is free software: you can redistribute it and/or modify
8cda6f8f 8# it under the terms of the GNU General Public License as published by
8ae3715e
GM
9# the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.
8cda6f8f
GM
11
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.
16
17# You should have received a copy of the GNU General Public License
8ae3715e
GM
18# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19
4c83f6e1 20SHELL = /bin/sh
8cda6f8f
GM
21
22srcdir = @srcdir@
17ca7950 23version=@version@
8cda6f8f 24
c1dc72b3 25infodir = $(srcdir)/../../info
fdf93ad9
GM
26# Directory with the (customized) texinfo.tex file.
27texinfodir = $(srcdir)/../misc
8cda6f8f 28
53ed5e45
WL
29MAKEINFO = @MAKEINFO@
30MAKEINFO_OPTS = --force -I $(srcdir)
8cda6f8f 31TEXI2DVI = texi2dvi
b60bfecc 32TEXI2PDF = texi2pdf
8cda6f8f
GM
33DVIPS = dvips
34
53ed5e45
WL
35ENVADD = TEXINPUTS="$(srcdir):$(texinfodir):$(TEXINPUTS)" \
36 MAKEINFO="$(MAKEINFO) $(MAKEINFO_OPTS)"
37
c1dc72b3 38mkinfodir = @test -d ${infodir} || mkdir ${infodir} || test -d ${infodir}
abd40fb4 39
c12e4a81 40.PHONY: info dvi html pdf ps
ea274122 41
4c83f6e1
GM
42info: ${infodir}/eintr
43
4c83f6e1
GM
44dvi: emacs-lisp-intro.dvi
45html: emacs-lisp-intro.html
46pdf: emacs-lisp-intro.pdf
c12e4a81 47ps: emacs-lisp-intro.ps
8cda6f8f 48
4c83f6e1
GM
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.
abd40fb4
GM
51${infodir}/eintr: ${srcdir}/emacs-lisp-intro.texi
52 $(mkinfodir)
53ed5e45 53 $(MAKEINFO) $(MAKEINFO_OPTS) -o $@ $<
8cda6f8f 54
4c83f6e1 55emacs-lisp-intro.dvi: ${srcdir}/emacs-lisp-intro.texi
53ed5e45 56 $(ENVADD) $(TEXI2DVI) $<
8cda6f8f 57
c12e4a81
GM
58emacs-lisp-intro.ps: emacs-lisp-intro.dvi
59 $(DVIPS) -o $@ $<
60
4c83f6e1 61emacs-lisp-intro.pdf: ${srcdir}/emacs-lisp-intro.texi
53ed5e45 62 $(ENVADD) $(TEXI2PDF) $<
b60bfecc 63
4c83f6e1 64emacs-lisp-intro.html: ${srcdir}/emacs-lisp-intro.texi
53ed5e45 65 $(MAKEINFO) $(MAKEINFO_OPTS) --html -o $@ $<
8cda6f8f 66
4c83f6e1
GM
67.PHONY: mostlyclean clean distclean maintainer-clean infoclean
68
8cda6f8f 69mostlyclean:
4c83f6e1
GM
70 rm -f *.aux *.log *.toc *.cp *.cps *.fn *.fns *.ky *.kys \
71 *.op *.ops *.pg *.pgs *.tp *.tps *.vr *.vrs
8cda6f8f
GM
72
73clean: mostlyclean
c12e4a81 74 rm -f emacs-lisp-intro.dvi emacs-lisp-intro.pdf emacs-lisp-intro.ps
4c83f6e1 75 rm -rf emacs-lisp-intro.html/
17ca7950 76 rm -f emacs-lispintro-${version}.tar*
8cda6f8f
GM
77
78distclean: clean
79
4c83f6e1 80infoclean:
c1dc72b3 81 -cd $(infodir) && rm -f eintr eintr-[1-9]
4c83f6e1
GM
82
83maintainer-clean: distclean infoclean
84
ea274122
GM
85.PHONY: dist
86
4c83f6e1 87dist:
17ca7950
GM
88 rm -rf emacs-lispintro-${version}
89 mkdir emacs-lispintro-${version}
4c83f6e1
GM
90 cp ${srcdir}/*.texi ${srcdir}/*.eps ${srcdir}/*.pdf \
91 ${texinfodir}/texinfo.tex \
17ca7950 92 ${srcdir}/ChangeLog* ${srcdir}/README emacs-lispintro-${version}/
4393405b
GM
93 sed -e 's/@sr[c]dir@/./' -e 's/^\(texinfodir *=\).*/\1 ./' \
94 -e 's/^\(infodir *=\).*/\1 ./' -e 's/^\(clean:.*\)/\1 infoclean/' \
17ca7950
GM
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}
8cda6f8f 99
4c83f6e1 100### Makefile ends here