Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.ca
[bpt/emacs.git] / doc / lispref / makefile.w32-in
CommitLineData
b8d4c8d0
GM
1# -*- Makefile -*- for the GNU Emacs Lisp Reference Manual.
2
ab422c4d 3# Copyright (C) 2003-2013 Free Software Foundation, Inc.
b8d4c8d0
GM
4
5# This file is part of GNU Emacs.
6
352c8b4a 7# GNU Emacs is free software: you can redistribute it and/or modify
b8d4c8d0 8# it under the terms of the GNU General Public License as published by
352c8b4a
GM
9# the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.
b8d4c8d0
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
352c8b4a
GM
18# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19
b8d4c8d0
GM
20
21# Standard configure variables.
22srcdir = .
23
df43c5b7 24infodir = $(srcdir)/../../info
b8d4c8d0 25
6513b232
EZ
26# Directory with emacsver.texi.
27emacsdir = $(srcdir)/../emacs
bf3dae7e
EZ
28# Directory with the (customized) texinfo.tex file.
29texinfodir = $(srcdir)/../misc
6513b232 30
8045b906
GM
31INFO_EXT=.info
32INFO_OPTS=--no-split
33
b8d4c8d0
GM
34# Redefine `TEX' if `tex' does not invoke plain TeX. For example:
35# TEX=platex
36TEX=tex
37INSTALL_INFO = install-info
bf3dae7e 38MAKEINFO = makeinfo
63a329f8 39MAKEINFO_OPTS = --force --enable-encoding -I$(srcdir) -I$(emacsdir)
b8d4c8d0
GM
40
41# The environment variable and its value to add $(srcdir) to the path
42# searched for TeX input files.
bf3dae7e 43texinputdir = $(srcdir)\..\..\nt\envadd.bat \
2aa43abb 44 "TEXINPUTS=$(srcdir);$(texinfodir);$(emacsdir);$(TEXINPUTS)" \
bf3dae7e 45 "MAKEINFO=$(MAKEINFO) $(MAKEINFO_OPTS)" /C
b8d4c8d0 46
b8d4c8d0
GM
47# List of all the texinfo files in the manual:
48
49srcs = \
6513b232 50 $(emacsdir)/emacsver.texi \
b8d4c8d0
GM
51 $(srcdir)/abbrevs.texi \
52 $(srcdir)/advice.texi \
53 $(srcdir)/anti.texi \
b8d4c8d0
GM
54 $(srcdir)/backups.texi \
55 $(srcdir)/buffers.texi \
56 $(srcdir)/commands.texi \
57 $(srcdir)/compile.texi \
58 $(srcdir)/control.texi \
59 $(srcdir)/customize.texi \
60 $(srcdir)/debugging.texi \
61 $(srcdir)/display.texi \
62 $(srcdir)/edebug.texi \
63 $(srcdir)/elisp.texi \
64 $(srcdir)/errors.texi \
65 $(srcdir)/eval.texi \
66 $(srcdir)/files.texi \
67 $(srcdir)/frames.texi \
68 $(srcdir)/functions.texi \
69 $(srcdir)/hash.texi \
70 $(srcdir)/help.texi \
71 $(srcdir)/hooks.texi \
72 $(srcdir)/internals.texi \
73 $(srcdir)/intro.texi \
74 $(srcdir)/keymaps.texi \
75 $(srcdir)/lists.texi \
76 $(srcdir)/loading.texi \
b8d4c8d0
GM
77 $(srcdir)/macros.texi \
78 $(srcdir)/maps.texi \
79 $(srcdir)/markers.texi \
80 $(srcdir)/minibuf.texi \
81 $(srcdir)/modes.texi \
82 $(srcdir)/nonascii.texi \
83 $(srcdir)/numbers.texi \
84 $(srcdir)/objects.texi \
85 $(srcdir)/os.texi \
78f5433f 86 $(srcdir)/package.texi \
b8d4c8d0
GM
87 $(srcdir)/positions.texi \
88 $(srcdir)/processes.texi \
89 $(srcdir)/searching.texi \
90 $(srcdir)/sequences.texi \
91 $(srcdir)/streams.texi \
92 $(srcdir)/strings.texi \
93 $(srcdir)/symbols.texi \
94 $(srcdir)/syntax.texi \
95 $(srcdir)/text.texi \
96 $(srcdir)/tips.texi \
97 $(srcdir)/variables.texi \
98 $(srcdir)/windows.texi \
99 $(srcdir)/index.texi \
100 $(srcdir)/gpl.texi \
101 $(srcdir)/doclicense.texi
102
103
104.PHONY: clean
105
106# The info file is named `elisp'.
107
8045b906 108info: $(infodir)/elisp$(INFO_EXT)
b8d4c8d0 109
f272c0fd 110$(infodir)/dir:
b8d4c8d0
GM
111 $(INSTALL_INFO) --info-dir=$(infodir) $(infodir)/elisp
112
8045b906
GM
113$(infodir)/elisp$(INFO_EXT): $(srcs)
114 $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ $(srcdir)/elisp.texi
b8d4c8d0
GM
115
116elisp.dvi: $(srcs)
bf3dae7e 117 $(texinputdir) $(TEX) $(srcdir)/elisp.texi
b8d4c8d0
GM
118
119clean:
120 - $(DEL) *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \
121 *.vr *.vrs *.pg *.pgs *.ky *.kys
122 - $(DEL) make.out core
123 - $(DEL) $(infodir)/elisp*
124
125distclean: clean
6d52677d 126 - $(DEL) makefile
b8d4c8d0
GM
127
128maintainer-clean: distclean
8045b906 129 - $(DEL) elisp$(INFO_EXT) elisp$(INFO_EXT)-? elisp$(INFO_EXT)-?? elisp.dvi elisp.oaux