ea9b04b87ca6cd90cb2f9abccf0970594d4011c9
[bpt/emacs.git] / doc / lispintro / makefile.w32-in
1 #### -*- Makefile -*- for the Emacs Lisp Introduction manual.
2
3 # Copyright (C) 2003-2012 Free Software Foundation, Inc.
4
5 # This file is part of GNU Emacs.
6
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.
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
18 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19
20
21 srcdir = .
22
23 infodir = $(srcdir)/../../info
24 # Directory with the (customized) texinfo.tex file.
25 texinfodir = $(srcdir)/../misc
26
27 INFO_EXT=.info
28 INFO_OPTS=--no-split
29 INFO_SOURCES = $(srcdir)/emacs-lisp-intro.texi $(srcdir)/doclicense.texi
30 # The file name eintr must fit within 5 characters, to allow for
31 # -NN extensions to fit into DOS 8+3 limits without clashing
32 INFO_TARGETS = $(infodir)/eintr$(INFO_EXT)
33 DVI_TARGETS = emacs-lisp-intro.dvi
34
35 MAKEINFO = makeinfo
36 INSTALL_INFO = install-info
37 TEXI2DVI = texi2dvi
38 TEXI2PDF = texi2pdf
39 DVIPS = dvips
40 ENVADD = $(srcdir)\..\..\nt\envadd.bat "TEXINPUTS=$(srcdir);$(TEXINPUTS)" \
41 "MAKEINFO=$(MAKEINFO) -I$(srcdir) -I$(texinfodir)" /C
42
43 .SUFFIXES: .dvi .ps .texi
44
45 info: $(INFO_TARGETS)
46
47 $(infodir)/dir:
48 $(INSTALL_INFO) --info-dir=$(infodir) $(INFO_TARGETS)
49
50 dvi: $(DVI_TARGETS)
51
52 $(infodir)/eintr$(INFO_EXT): $(INFO_SOURCES)
53 $(MAKEINFO) $(INFO_OPTS) -o $@ $(srcdir)/emacs-lisp-intro.texi
54
55 emacs-lisp-intro.dvi: $(INFO_SOURCES)
56 $(ENVADD) $(TEXI2DVI) $(srcdir)/emacs-lisp-intro.texi
57
58 emacs-lisp-intro.pdf: $(INFO_SOURCES)
59 $(ENVADD) $(TEXI2PDF) $(srcdir)/emacs-lisp-intro.texi
60
61 emacs-lisp-intro.html: $(INFO_SOURCES)
62 $(MAKEINFO) --html -o $@ $(srcdir)/emacs-lisp-intro.texi
63
64 .dvi.ps:
65 $(DVIPS) $< -o $@
66
67 mostlyclean:
68 - $(DEL) *.log *.cp *.fn *.ky *.pg *.vr *.tp
69
70 clean: mostlyclean
71 - $(DEL) *.dvi $(infodir)/eintr$(INFO_EXT)*
72
73 distclean: clean
74 - $(DEL) makefile
75
76 maintainer-clean: distclean
77 - $(DEL) *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc
78
79 # Tell versions [3.59,3.63) of GNU make to not export all variables.
80 # Otherwise a system limit (for SysV at least) may be exceeded.
81 .NOEXPORT: