* basic.texi (Moving Point): Fix tag.
[emacs.git] / doc / emacs / makefile.w32-in
blob9c1a8cd00377289f4d04c32958fe62a772987d51
1 #### -*- Makefile -*- for the Emacs Manual
3 # Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009
4 #   Free Software Foundation, Inc.
6 # This file is part of GNU Emacs.
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 3 of the License, or
11 # (at your option) any later version.
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.
18 # You should have received a copy of the GNU General Public License
19 # along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
22 # Where to find the source code.  The source code for Emacs's C kernel is
23 # expected to be in $(srcdir)/src, and the source code for Emacs's
24 # utility programs is expected to be in $(srcdir)/lib-src.  This is
25 # set by the configure script's `--srcdir' option.
26 srcdir=.
28 infodir = $(srcdir)/../../info
30 # The makeinfo program is part of the Texinfo distribution.
31 MAKEINFO = makeinfo --force
32 MULTI_INSTALL_INFO = $(srcdir)\..\..\nt\multi-install-info.bat
33 INFO_TARGETS = $(infodir)/emacs
34 DVI_TARGETS =   emacs.dvi
35 INFOSOURCES = info.texi
37 # The following rule does not work with all versions of `make'.
38 .SUFFIXES: .texi .dvi
39 .texi.dvi:
40         texi2dvi $<
42 TEXI2DVI = texi2dvi
43 ENVADD = $(srcdir)\..\..\nt\envadd.bat "TEXINPUTS=$(srcdir);$(TEXINPUTS)" \
44          "MAKEINFO=$(MAKEINFO) -I$(srcdir)" /C
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
57 EMACSSOURCES= \
58         $(srcdir)/emacs.texi \
59         $(srcdir)/doclicense.texi \
60         $(srcdir)/screen.texi \
61         $(srcdir)/commands.texi \
62         $(srcdir)/entering.texi \
63         $(srcdir)/basic.texi \
64         $(srcdir)/mini.texi \
65         $(srcdir)/m-x.texi \
66         $(srcdir)/help.texi \
67         $(srcdir)/mark.texi \
68         $(srcdir)/killing.texi \
69         $(srcdir)/regs.texi \
70         $(srcdir)/display.texi \
71         $(srcdir)/search.texi \
72         $(srcdir)/fixit.texi \
73         $(srcdir)/files.texi \
74         $(srcdir)/buffers.texi \
75         $(srcdir)/windows.texi \
76         $(srcdir)/frames.texi \
77         $(srcdir)/mule.texi \
78         $(srcdir)/major.texi \
79         $(srcdir)/indent.texi \
80         $(srcdir)/text.texi \
81         $(srcdir)/programs.texi \
82         $(srcdir)/building.texi \
83         $(srcdir)/maintaining.texi \
84         $(srcdir)/abbrevs.texi \
85         $(srcdir)/sending.texi \
86         $(srcdir)/rmail.texi \
87         $(srcdir)/dired.texi \
88         $(srcdir)/calendar.texi \
89         $(srcdir)/misc.texi \
90         $(srcdir)/custom.texi \
91         $(srcdir)/trouble.texi \
92         $(srcdir)/cmdargs.texi \
93         $(srcdir)/xresources.texi \
94         $(srcdir)/anti.texi \
95         $(srcdir)/macos.texi \
96         $(srcdir)/msdog.texi \
97         $(srcdir)/gnu.texi \
98         $(srcdir)/glossary.texi \
99         $(srcdir)/ack.texi \
100         $(srcdir)/kmacro.texi \
101         $(EMACS_XTRA)
103 info: $(INFO_TARGETS)
105 dvi: $(DVI_TARGETS)
107 # Note that all the Info targets build the Info files
108 # in srcdir.  There is no provision for Info files
109 # to exist in the build directory.
110 # In a distribution of Emacs, the Info files should be up to date.
112 $(infodir)/dir:
113         $(MULTI_INSTALL_INFO) --info-dir=$(infodir) $(INFO_TARGETS)
115 $(infodir)/emacs: $(EMACSSOURCES)
116         $(MAKEINFO) emacs.texi
118 emacs.dvi: $(EMACSSOURCES)
119         $(ENVADD) $(TEXI2DVI) $(srcdir)/emacs.texi
121 emacs-xtra.dvi: emacs-xtra.texi $(EMACS_XTRA)
122         $(ENVADD) $(TEXI2DVI) $(srcdir)/emacs-xtra.texi
124 mostlyclean:
125         - $(DEL) *.log *.cp *.fn *.ky *.pg *.vr core *.tp *.core gnustmp.*
127 clean: mostlyclean
128         - $(DEL) *.dvi
129         - $(DEL) $(infodir)/emacs*
131 distclean: clean
132         - $(DEL) makefile
134 maintainer-clean: distclean
135         - $(DEL) *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc
136 # Don't delete these, because they are outside the current directory.
137 #       for file in $(INFO_TARGETS); do rm -f $${file}*; done
140 # Formerly this directory had texindex.c and getopt.c in it
141 # and this makefile built them to make texindex.
142 # That caused trouble because this is run entirely in the source directory.
143 # Since we expect to get texi2dvi from elsewhere,
144 # it is ok to expect texindex from elsewhere also.