Anchor regexps in doc/ `make dist' rules.
[bpt/emacs.git] / doc / lispintro / Makefile.in
CommitLineData
8cda6f8f
GM
1#### Makefile for the Emacs Lisp Introduction manual
2
b60bfecc 3# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003,
4c83f6e1
GM
4# 2004, 2005, 2006, 2007, 2008, 2009, 2010
5# Free Software Foundation, Inc.
8cda6f8f
GM
6
7# This file is part of GNU Emacs.
8
8ae3715e 9# GNU Emacs is free software: you can redistribute it and/or modify
8cda6f8f 10# it under the terms of the GNU General Public License as published by
8ae3715e
GM
11# the Free Software Foundation, either version 3 of the License, or
12# (at your option) any later version.
8cda6f8f
GM
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
8ae3715e
GM
20# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21
4c83f6e1 22SHELL = /bin/sh
8cda6f8f
GM
23
24srcdir = @srcdir@
25VPATH = @srcdir@
17ca7950 26version=@version@
8cda6f8f 27
9d2663a9 28infodir = ../../info
fdf93ad9
GM
29# Directory with the (customized) texinfo.tex file.
30texinfodir = $(srcdir)/../misc
8cda6f8f 31
8cda6f8f
GM
32MAKEINFO = makeinfo
33TEXI2DVI = texi2dvi
b60bfecc 34TEXI2PDF = texi2pdf
8cda6f8f
GM
35DVIPS = dvips
36
5bd23485 37mkinfodir = @cd ${srcdir}; test -d ${infodir} || mkdir ${infodir} || test -d ${infodir}
abd40fb4 38
8cda6f8f
GM
39.SUFFIXES: .dvi .ps .texi
40
ea274122
GM
41.PHONY: info dvi html pdf
42
4c83f6e1
GM
43info: ${infodir}/eintr
44
4c83f6e1
GM
45dvi: emacs-lisp-intro.dvi
46html: emacs-lisp-intro.html
47pdf: emacs-lisp-intro.pdf
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)
eef3ab94 53 cd $(srcdir); $(MAKEINFO) $< -o $@
8cda6f8f 54
4c83f6e1 55emacs-lisp-intro.dvi: ${srcdir}/emacs-lisp-intro.texi
eef3ab94 56 $(TEXI2DVI) -I $(srcdir) -I $(texinfodir) $<
8cda6f8f 57
4c83f6e1 58emacs-lisp-intro.pdf: ${srcdir}/emacs-lisp-intro.texi
eef3ab94 59 $(TEXI2PDF) -I $(srcdir) -I $(texinfodir) $<
b60bfecc 60
4c83f6e1 61emacs-lisp-intro.html: ${srcdir}/emacs-lisp-intro.texi
eef3ab94 62 $(MAKEINFO) --html -o $@ $<
8cda6f8f
GM
63
64.dvi.ps:
65 $(DVIPS) $< -o $@
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
4c83f6e1
GM
74 rm -f emacs-lisp-intro.dvi emacs-lisp-intro.pdf
75 rm -rf emacs-lisp-intro.html/
17ca7950 76 rm -f emacs-lispintro-${version}.tar*
8cda6f8f
GM
77
78distclean: clean
79
4c83f6e1 80infoclean:
aa9db089 81 -cd $(srcdir) && 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