1#### Makefile for the Emacs Lisp Introduction manual
2
3# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002,
4#   2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
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
20# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21# Boston, MA 02110-1301, USA.
22
23SHELL = @SHELL@
24
25srcdir = @srcdir@
26VPATH = @srcdir@
27
28infodir = ../info
29usermanualdir = $(srcdir)/../man
30
31INFO_SOURCES = ${srcdir}/emacs-lisp-intro.texi
32# The file name eintr must fit within 5 characters, to allow for
33# -NN extensions to fit into DOS 8+3 limits without clashing
34INFO_TARGETS = ${infodir}/eintr
35DVI_TARGETS = emacs-lisp-intro.dvi
36
37MAKEINFO = makeinfo
38TEXI2DVI = texi2dvi
39DVIPS = dvips
40
41.SUFFIXES: .dvi .ps .texi
42
43info: $(INFO_TARGETS)
44
45dvi: $(DVI_TARGETS)
46
47${infodir}/eintr: ${INFO_SOURCES}
48	cd $(srcdir); $(MAKEINFO) emacs-lisp-intro.texi -o $(infodir)/eintr
49
50emacs-lisp-intro.dvi: ${INFO_SOURCES}
51	$(TEXI2DVI) -I $(srcdir) -I $(usermanualdir) $(srcdir)/emacs-lisp-intro.texi
52
53emacs-lisp-intro.html: $(INFO_SOURCES)
54	$(MAKEINFO) --html -o $@ $(srcdir)/emacs-lisp-intro.texi
55
56.dvi.ps:
57	$(DVIPS) $< -o $@
58
59mostlyclean:
60	rm -f  *.log *.cp *.fn *.ky *.pg *.vr *.tp
61
62clean: mostlyclean
63	rm -f *.dvi
64
65distclean: clean
66
67maintainer-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:
73