Commit | Line | Data |
---|---|---|
9d940192 EZ |
1 | #### Makefile for the Emacs Lisp Introduction manual |
2 | ||
b398a621 | 3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, |
5b0d63bc | 4 | # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
9d940192 EZ |
5 | |
6 | # This file is part of GNU Emacs. | |
7 | ||
8 | # GNU Emacs is free software; you can redistribute it and/or modify | |
9 | # it under the terms of the GNU General Public License as published by | |
10 | # the Free Software Foundation; either version 2, or (at your option) | |
11 | # any later version. | |
12 | ||
13 | # GNU Emacs is distributed in the hope that it will be useful, | |
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | # GNU General Public License for more details. | |
17 | ||
18 | # You should have received a copy of the GNU General Public License | |
19 | # along with GNU Emacs; see the file COPYING. If not, write to | |
364c38d3 LK |
20 | # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
21 | # Boston, MA 02110-1301, USA. | |
9d940192 EZ |
22 | |
23 | SHELL = @SHELL@ | |
24 | ||
25 | srcdir = @srcdir@ | |
26 | VPATH = @srcdir@ | |
27 | ||
28 | infodir = ${srcdir}/../info | |
29 | ||
30 | INFO_SOURCES = ${srcdir}/emacs-lisp-intro.texi | |
31 | # The file name eintr must fit within 5 characters, to allow for | |
32 | # -NN extensions to fit into DOS 8+3 limits without clashing | |
33 | INFO_TARGETS = ${infodir}/eintr | |
34 | DVI_TARGETS = emacs-lisp-intro.dvi | |
35 | ||
36 | MAKEINFO = makeinfo | |
37 | TEXI2DVI = texi2dvi | |
38 | DVIPS = dvips | |
9bfef367 | 39 | ENVADD = TEXINPUTS="$(srcdir):$(TEXINPUTS)" MAKEINFO="$(MAKEINFO) -I$(srcdir)" |
9d940192 EZ |
40 | |
41 | .SUFFIXES: .dvi .ps .texi | |
42 | ||
43 | info: $(INFO_TARGETS) | |
44 | ||
45 | dvi: $(DVI_TARGETS) | |
46 | ||
47 | ${infodir}/eintr: ${INFO_SOURCES} | |
48 | $(MAKEINFO) -o $@ $(srcdir)/emacs-lisp-intro.texi | |
49 | ||
50 | emacs-lisp-intro.dvi: ${INFO_SOURCES} | |
9bfef367 | 51 | $(ENVADD) $(TEXI2DVI) $(srcdir)/emacs-lisp-intro.texi |
9d940192 EZ |
52 | |
53 | emacs-lisp-intro.html: $(INFO_SOURCES) | |
54 | $(MAKEINFO) --html -o $@ $(srcdir)/emacs-lisp-intro.texi | |
55 | ||
56 | .dvi.ps: | |
57 | $(DVIPS) $< -o $@ | |
58 | ||
59 | mostlyclean: | |
60 | rm -f *.log *.cp *.fn *.ky *.pg *.vr *.tp | |
61 | ||
62 | clean: mostlyclean | |
63 | rm -f *.dvi | |
64 | ||
65 | distclean: clean | |
66 | ||
67 | maintainer-clean: distclean | |
68 | rm -f *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc | |
69 | ||
70 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | |
71 | # Otherwise a system limit (for SysV at least) may be exceeded. | |
72 | .NOEXPORT: |