(Commentary): Point to calendar.el.
[emacs.git] / doc / emacs / makefile.w32-in
blob99b9e173f655d3318784ef9a467c7788725936f2
1 #### -*- Makefile -*- for the Emacs Manual
3 # Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008
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, or (at your option)
11 # 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; 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.
23 # Where to find the source code.  The source code for Emacs's C kernel is
24 # expected to be in $(srcdir)/src, and the source code for Emacs's
25 # utility programs is expected to be in $(srcdir)/lib-src.  This is
26 # set by the configure script's `--srcdir' option.
27 srcdir=.
29 infodir = $(srcdir)/../../info
31 # The makeinfo program is part of the Texinfo distribution.
32 MAKEINFO = makeinfo --force
33 MULTI_INSTALL_INFO = $(srcdir)\..\..\nt\multi-install-info.bat
34 INFO_TARGETS = $(infodir)/emacs
35 DVI_TARGETS =   emacs.dvi
36 INFOSOURCES = info.texi
38 # The following rule does not work with all versions of `make'.
39 .SUFFIXES: .texi .dvi
40 .texi.dvi:
41         texi2dvi $<
43 TEXI2DVI = texi2dvi
44 ENVADD = $(srcdir)\..\..\nt\envadd.bat "TEXINPUTS=$(srcdir);$(TEXINPUTS)" \
45          "MAKEINFO=$(MAKEINFO) -I$(srcdir)" /C
47 EMACS_XTRA=\
48         $(srcdir)/arevert-xtra.texi \
49         $(srcdir)/cal-xtra.texi \
50         $(srcdir)/dired-xtra.texi \
51         $(srcdir)/picture-xtra.texi \
52         $(srcdir)/emerge-xtra.texi \
53         $(srcdir)/vc-xtra.texi \
54         $(srcdir)/vc1-xtra.texi \
55         $(srcdir)/vc2-xtra.texi \
56         $(srcdir)/fortran-xtra.texi \
57         $(srcdir)/msdog-xtra.texi
59 EMACSSOURCES= \
60         $(srcdir)/emacs.texi \
61         $(srcdir)/doclicense.texi \
62         $(srcdir)/screen.texi \
63         $(srcdir)/commands.texi \
64         $(srcdir)/entering.texi \
65         $(srcdir)/basic.texi \
66         $(srcdir)/mini.texi \
67         $(srcdir)/m-x.texi \
68         $(srcdir)/help.texi \
69         $(srcdir)/mark.texi \
70         $(srcdir)/killing.texi \
71         $(srcdir)/regs.texi \
72         $(srcdir)/display.texi \
73         $(srcdir)/search.texi \
74         $(srcdir)/fixit.texi \
75         $(srcdir)/files.texi \
76         $(srcdir)/buffers.texi \
77         $(srcdir)/windows.texi \
78         $(srcdir)/frames.texi \
79         $(srcdir)/mule.texi \
80         $(srcdir)/major.texi \
81         $(srcdir)/indent.texi \
82         $(srcdir)/text.texi \
83         $(srcdir)/programs.texi \
84         $(srcdir)/building.texi \
85         $(srcdir)/maintaining.texi \
86         $(srcdir)/abbrevs.texi \
87         $(srcdir)/sending.texi \
88         $(srcdir)/rmail.texi \
89         $(srcdir)/dired.texi \
90         $(srcdir)/calendar.texi \
91         $(srcdir)/misc.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)
105 info: $(INFO_TARGETS)
107 dvi: $(DVI_TARGETS)
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.
114 $(infodir)/dir:
115         $(MULTI_INSTALL_INFO) --info-dir=$(infodir) $(INFO_TARGETS)
117 $(infodir)/emacs: $(EMACSSOURCES)
118         $(MAKEINFO) emacs.texi
120 emacs.dvi: $(EMACSSOURCES)
121         $(ENVADD) $(TEXI2DVI) $(srcdir)/emacs.texi
123 emacs-xtra.dvi: emacs-xtra.texi $(EMACS_XTRA)
124         $(ENVADD) $(TEXI2DVI) $(srcdir)/emacs-xtra.texi
126 mostlyclean:
127         - $(DEL) *.log *.cp *.fn *.ky *.pg *.vr core *.tp *.core gnustmp.*
129 clean: mostlyclean
130         - $(DEL) *.dvi
131         - $(DEL) $(infodir)/emacs*
133 distclean: clean
135 maintainer-clean: distclean
136         - $(DEL) *.aux *.cps *.fns *.kys *.pgs *.vrs *.toc
137 # Don't delete these, because they are outside the current directory.
138 #       for file in $(INFO_TARGETS); do rm -f $${file}*; done
141 # Formerly this directory had texindex.c and getopt.c in it
142 # and this makefile built them to make texindex.
143 # That caused trouble because this is run entirely in the source directory.
144 # Since we expect to get texi2dvi from elsewhere,
145 # it is ok to expect texindex from elsewhere also.