merge trunk
[bpt/emacs.git] / doc / emacs / makefile.w32-in
1 #### -*- Makefile -*- for the Emacs 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 # Where to find the source code. The source code for Emacs's C kernel is
22 # expected to be in $(srcdir)/src, and the source code for Emacs's
23 # utility programs is expected to be in $(srcdir)/lib-src. This is
24 # set by the configure script's `--srcdir' option.
25 srcdir=.
26
27 infodir = $(srcdir)/../../info
28
29 # The makeinfo program is part of the Texinfo distribution.
30 MAKEINFO = makeinfo
31 MAKEINFO_OPTS = --force --enable-encoding -I$(srcdir)
32 MULTI_INSTALL_INFO = $(srcdir)\..\..\nt\multi-install-info.bat
33 INFO_TARGETS = $(infodir)/emacs
34 DVI_TARGETS = emacs.dvi
35 INFOSOURCES = info.texi
36
37 # The following rule does not work with all versions of `make'.
38 .SUFFIXES: .texi .dvi
39 .texi.dvi:
40 texi2dvi $<
41
42 TEXI2DVI = texi2dvi
43 ENVADD = $(srcdir)\..\..\nt\envadd.bat "TEXINPUTS=$(srcdir);$(TEXINPUTS)" \
44 "MAKEINFO=$(MAKEINFO) $(MAKEINFO_OPTS)" /C
45
46 EMACS_XTRA=\
47 $(srcdir)/arevert-xtra.texi \
48 $(srcdir)/cal-xtra.texi \
49 $(srcdir)/dired-xtra.texi \
50 $(srcdir)/picture-xtra.texi \
51 $(srcdir)/emerge-xtra.texi \
52 $(srcdir)/vc-xtra.texi \
53 $(srcdir)/vc1-xtra.texi \
54 $(srcdir)/fortran-xtra.texi \
55 $(srcdir)/msdog-xtra.texi
56
57 EMACSSOURCES= \
58 $(srcdir)/emacs.texi \
59 $(srcdir)/emacsver.texi \
60 $(srcdir)/doclicense.texi \
61 $(srcdir)/screen.texi \
62 $(srcdir)/commands.texi \
63 $(srcdir)/entering.texi \
64 $(srcdir)/basic.texi \
65 $(srcdir)/mini.texi \
66 $(srcdir)/m-x.texi \
67 $(srcdir)/help.texi \
68 $(srcdir)/mark.texi \
69 $(srcdir)/killing.texi \
70 $(srcdir)/regs.texi \
71 $(srcdir)/display.texi \
72 $(srcdir)/search.texi \
73 $(srcdir)/fixit.texi \
74 $(srcdir)/files.texi \
75 $(srcdir)/buffers.texi \
76 $(srcdir)/windows.texi \
77 $(srcdir)/frames.texi \
78 $(srcdir)/mule.texi \
79 $(srcdir)/modes.texi \
80 $(srcdir)/indent.texi \
81 $(srcdir)/text.texi \
82 $(srcdir)/programs.texi \
83 $(srcdir)/building.texi \
84 $(srcdir)/maintaining.texi \
85 $(srcdir)/abbrevs.texi \
86 $(srcdir)/sending.texi \
87 $(srcdir)/rmail.texi \
88 $(srcdir)/dired.texi \
89 $(srcdir)/calendar.texi \
90 $(srcdir)/misc.texi \
91 $(srcdir)/package.texi \
92 $(srcdir)/custom.texi \
93 $(srcdir)/trouble.texi \
94 $(srcdir)/cmdargs.texi \
95 $(srcdir)/xresources.texi \
96 $(srcdir)/anti.texi \
97 $(srcdir)/macos.texi \
98 $(srcdir)/msdog.texi \
99 $(srcdir)/gnu.texi \
100 $(srcdir)/glossary.texi \
101 $(srcdir)/ack.texi \
102 $(srcdir)/kmacro.texi \
103 $(EMACS_XTRA)
104
105 info: $(INFO_TARGETS)
106
107 dvi: $(DVI_TARGETS)
108
109 # Note that all the Info targets build the Info files
110 # in srcdir. There is no provision for Info files
111 # to exist in the build directory.
112 # In a distribution of Emacs, the Info files should be up to date.
113
114 $(infodir)/dir:
115 $(MULTI_INSTALL_INFO) --info-dir=$(infodir) $(INFO_TARGETS)
116
117 $(infodir)/emacs: $(EMACSSOURCES)
118 $(MAKEINFO) $(MAKEINFO_OPTS) emacs.texi
119
120 emacs.dvi: $(EMACSSOURCES)
121 $(ENVADD) $(TEXI2DVI) $(srcdir)/emacs.texi
122
123 emacs.html: $(EMACSSOURCES)
124 $(MAKEINFO) $(MAKEINFO_OPTS) --html -o $@ emacs.texi
125
126 emacs-xtra.dvi: emacs-xtra.texi $(EMACS_XTRA)
127 $(ENVADD) $(TEXI2DVI) $(srcdir)/emacs-xtra.texi
128
129 mostlyclean:
130 - $(DEL) *.log *.cp *.fn *.ky *.pg *.vr core *.tp *.core gnustmp.*
131
132 clean: mostlyclean
133 - $(DEL) *.dvi
134 - $(DEL) $(infodir)/emacs*
135 - $(DEL_TREE) emacs.html
136
137 distclean: clean
138 - $(DEL) makefile
139
140 maintainer-clean: distclean
141 - $(DEL) *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc
142 # Don't delete these, because they are outside the current directory.
143 # for file in $(INFO_TARGETS); do rm -f $${file}*; done
144
145
146 # Formerly this directory had texindex.c and getopt.c in it
147 # and this makefile built them to make texindex.
148 # That caused trouble because this is run entirely in the source directory.
149 # Since we expect to get texi2dvi from elsewhere,
150 # it is ok to expect texindex from elsewhere also.