annotate nt/makefile.w32-in @ 50207:b49563831bd2

(ccl-decode-mule-utf-8): Fix a bug of invalid 5 to 6 bytes sequence.
author Kenichi Handa <handa@m17n.org>
date Wed, 19 Mar 2003 23:34:36 +0000
parents 23a1cea22d13
children 695cf19ef79e d7ddb3e565de
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
41806
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
1 # Makefile for GNU Emacs on the Microsoft W32 API.
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
2 # Copyright (c) 2000-2001 Free Software Foundation, Inc.
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
3 #
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
4 # Top level makefile for building GNU Emacs on Windows NT
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
5 #
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
6 # This file is part of GNU Emacs.
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 45811
diff changeset
7 #
41806
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
8 # GNU Emacs is free software; you can redistribute it and/or modify
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
9 # it under the terms of the GNU General Public License as published by
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
10 # the Free Software Foundation; either version 2, or (at your option)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
11 # any later version.
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 45811
diff changeset
12 #
41806
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
13 # GNU Emacs is distributed in the hope that it will be useful,
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
16 # GNU General Public License for more details.
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 45811
diff changeset
17 #
41806
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
18 # You should have received a copy of the GNU General Public License
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
19 # along with GNU Emacs; see the file COPYING. If not, write to
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
20 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
21 # Boston, MA 02111-1307, USA.
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
22
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
23 ALL = addpm ddeclient runemacs cmdproxy addsection preprep
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
24
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
25 .PHONY: $(ALL)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
26
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
27 TRES = $(BLD)/emacs.res
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
28
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
29 addpm: $(BLD) $(BLD)/addpm.exe
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
30 $(BLD)/addpm.exe: $(BLD)/addpm.$(O)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
31 $(LINK) $(LINK_OUT)$@ \
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
32 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
33
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
34 ddeclient: $(BLD) $(BLD)/ddeclient.exe
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
35 $(BLD)/ddeclient.exe: $(BLD)/ddeclient.$(O)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
36 $(LINK) $(LINK_OUT)$@ \
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
37 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
38
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
39 cmdproxy: $(BLD) $(BLD)/cmdproxy.exe
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
40 $(BLD)/cmdproxy.exe: $(BLD)/cmdproxy.$(O)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
41 $(LINK) $(LINK_OUT)$@ \
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
42 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
43
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
44 addsection: $(BLD) $(BLD)/addsection.exe
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
45 $(BLD)/addsection.exe: $(BLD)/addsection.$(O)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
46 $(LINK) $(LINK_OUT)$@ \
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
47 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
48
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
49 preprep: $(BLD) $(BLD)/preprep.exe
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
50 $(BLD)/preprep.exe: $(BLD)/preprep.$(O)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
51 $(LINK) $(LINK_OUT)$@ \
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
52 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
53
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
54 #
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
55 # The resource file. NT 3.10 requires the use of cvtres; even though
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
56 # it is not necessary on later versions, it is still ok to use it.
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
57 #
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
58 $(TRES): emacs.rc
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
59 $(RC) $(RC_OUT)$(BLD)/emacs.res $(ALL_DEPS)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
60
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
61 runemacs: $(BLD) $(BLD)/runemacs.exe
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
62 $(BLD)/runemacs.exe: $(BLD)/runemacs.$(O) $(TRES)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
63 $(LINK) $(LINK_OUT)$@ $(SUBSYSTEM_WINDOWS) \
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
64 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
65
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
66 which-sh:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
67 @echo Using $(THE_SHELL) as shell.
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
68
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
69 #
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
70 # Build emacs
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
71 #
45811
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
72 all: which-sh $(BLD) $(ALL) maybe-bootstrap all-other-dirs-$(MAKETYPE)
41806
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
73
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
74 all-other-dirs-nmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
75 cd ..\lib-src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
76 $(MAKE) $(MFLAGS) all
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
77 cd ..\src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
78 $(MAKE) $(MFLAGS) all
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
79 cd ..\lisp
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
80 $(MAKE) $(MFLAGS) all
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
81 cd ..\leim
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
82 $(MAKE) $(MFLAGS) all
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
83 cd ..\nt
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
84
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
85 all-other-dirs-gmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
86 $(MAKE) $(MFLAGS) -C ../lib-src all
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
87 $(MAKE) $(MFLAGS) -C ../src all
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
88 $(MAKE) $(MFLAGS) -C ../lisp all
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
89 $(MAKE) $(MFLAGS) -C ../leim all
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
90
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
91 recompile: recompile-$(MAKETYPE)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
92
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
93 recompile-nmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
94 cd ..\lisp
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
95 $(MAKE) $(MFLAGS) recompile
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
96 cd ..\nt
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
97
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
98 recompile-gmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
99 $(MAKE) $(MFLAGS) -C ../lisp recompile
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
100
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
101 #### Bootstrapping.
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
102
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
103 ### This is meant for Emacs maintainers only. It first cleans the
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
104 ### lisp subdirectory, removing all compiled Lisp files. Then a
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
105 ### special emacs executable is built from Lisp sources, which is then
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
106 ### used to compile Lisp files. The last step is a "normal" make.
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
107
45811
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
108 maybe-bootstrap: maybe-bootstrap-$(SHELLTYPE)
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
109
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
110 # dummy target to force other targets to be evaluated.
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
111 doit:
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
112
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
113 maybe-bootstrap-CMD: doit
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
114 @echo.
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
115 @if not EXIST ..\lisp\abbrev.elc echo Essential Lisp files seem to be missing. You should either
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
116 @if not EXIST ..\lisp\abbrev.elc echo do 'make bootstrap' or create 'lisp/abbrev.elc' somehow
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
117 @echo.
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
118 @if not EXIST ..\lisp\abbrev.elc exit -1
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
119
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
120 maybe-bootstrap-SH: doit
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
121 @if [ ! -f ../lisp/abbrev.elc ] ; then \
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
122 echo; \
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
123 echo "Essential Lisp files seem to be missing. You should either"; \
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
124 echo "do \`make bootstrap' or create \`lisp/abbrev.elc' somehow."; \
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
125 echo; \
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
126 exit -1; \
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
127 fi
a834f8a38ad4 (maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents: 44495
diff changeset
128
42026
dbb37240de5f (bootstrap): Build addsection program before
Andrew Innes <andrewi@gnu.org>
parents: 41806
diff changeset
129 bootstrap: addsection bootstrap-$(MAKETYPE) all
41806
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
130
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
131 bootstrap-nmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
132 cd ..\lisp
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
133 $(MAKE) $(MFLAGS) bootstrap-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
134 cd ..\src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
135 $(MAKE) $(MFLAGS) clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
136 cd ..\lib-src
44495
5040cc502801 (bootstrap-nmake, bootstrap-gmake): Make DOC after compiling .el files.
Juanma Barranquero <lekktu@gmail.com>
parents: 42026
diff changeset
137 $(MAKE) $(MFLAGS) clean
41806
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
138 cd ..\src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
139 $(MAKE) $(MFLAGS) bootstrap
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
140 $(MAKE) $(MFLAGS) bootstrap-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
141 cd ..\lisp
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
142 $(MAKE) $(MFLAGS) bootstrap
44495
5040cc502801 (bootstrap-nmake, bootstrap-gmake): Make DOC after compiling .el files.
Juanma Barranquero <lekktu@gmail.com>
parents: 42026
diff changeset
143 cd ..\lib-src
5040cc502801 (bootstrap-nmake, bootstrap-gmake): Make DOC after compiling .el files.
Juanma Barranquero <lekktu@gmail.com>
parents: 42026
diff changeset
144 $(MAKE) $(MFLAGS) DOC
41806
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
145 cd ..\nt
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
146
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
147 bootstrap-gmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
148 $(MAKE) $(MFLAGS) -C ../lisp bootstrap-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
149 $(MAKE) $(MFLAGS) -C ../src clean
44495
5040cc502801 (bootstrap-nmake, bootstrap-gmake): Make DOC after compiling .el files.
Juanma Barranquero <lekktu@gmail.com>
parents: 42026
diff changeset
150 $(MAKE) $(MFLAGS) -C ../lib-src clean
41806
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
151 $(MAKE) $(MFLAGS) -C ../src bootstrap
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
152 $(MAKE) $(MFLAGS) -C ../src bootstrap-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
153 $(MAKE) $(MFLAGS) -C ../lisp bootstrap
44495
5040cc502801 (bootstrap-nmake, bootstrap-gmake): Make DOC after compiling .el files.
Juanma Barranquero <lekktu@gmail.com>
parents: 42026
diff changeset
154 $(MAKE) $(MFLAGS) -C ../lib-src DOC
41806
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
155
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
156 bootstrap-clean: bootstrap-clean-$(MAKETYPE)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
157
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
158 bootstrap-clean-nmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
159 cd ..\src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
160 $(MAKE) $(MFLAGS) bootstrap-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
161 cd ..\lisp
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
162 $(MAKE) $(MFLAGS) bootstrap-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
163
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
164 bootstrap-clean-gmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
165 $(MAKE) $(MFLAGS) -C ../src bootstrap-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
166 $(MAKE) $(MFLAGS) -C ../lisp bootstrap-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
167
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
168 $(INSTALL_DIR):
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
169 - mkdir "$(INSTALL_DIR)"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
170
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
171 $(INSTALL_DIR)/bin: $(INSTALL_DIR)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
172 - mkdir "$(INSTALL_DIR)/bin"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
173
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
174 #
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
175 # Build and install emacs in INSTALL_DIR
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
176 #
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
177 install: all $(INSTALL_DIR)/bin install-other-dirs-$(MAKETYPE)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
178 - $(CP) $(BLD)/addpm.exe $(INSTALL_DIR)/bin
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
179 - $(CP) $(BLD)/ddeclient.exe $(INSTALL_DIR)/bin
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
180 - $(CP) $(BLD)/cmdproxy.exe $(INSTALL_DIR)/bin
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
181 - $(CP) $(BLD)/runemacs.exe $(INSTALL_DIR)/bin
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
182 - $(CP) ../lib-src/fns-*.el $(INSTALL_DIR)/bin
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
183 - "$(INSTALL_DIR)/bin/addpm" /q
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
184 - $(DEL) ../same-dir.tst
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
185 - $(DEL) $(INSTALL_DIR)/same-dir.tst
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
186 echo SameDirTest > "$(INSTALL_DIR)/same-dir.tst"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
187 - mkdir "$(INSTALL_DIR)/etc"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
188 - mkdir "$(INSTALL_DIR)/info"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
189 - mkdir "$(INSTALL_DIR)/lock"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
190 - mkdir "$(INSTALL_DIR)/data"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
191 - mkdir "$(INSTALL_DIR)/site-lisp"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
192 - mkdir "$(INSTALL_DIR)/etc/icons"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
193 $(IFNOTSAMEDIR) $(CP) ../site-lisp/subdirs.el $(INSTALL_DIR)/site-lisp $(ENDIF)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
194 $(IFNOTSAMEDIR) $(CP_DIR) ../etc $(INSTALL_DIR) $(ENDIF)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
195 - $(CP_DIR) icons $(INSTALL_DIR)/etc
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
196 $(IFNOTSAMEDIR) $(CP_DIR) ../info $(INSTALL_DIR) $(ENDIF)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
197 - $(DEL) ../same-dir.tst
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
198 - $(DEL) $(INSTALL_DIR)/same-dir.tst
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
199
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
200 install-other-dirs-nmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
201 cd ..\lib-src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
202 $(MAKE) $(MFLAGS) install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
203 cd ..\src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
204 $(MAKE) $(MFLAGS) install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
205 cd ..\lisp
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
206 $(MAKE) $(MFLAGS) install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
207 cd ..\leim
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
208 $(MAKE) $(MFLAGS) install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
209 cd ..\nt
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
210
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
211 install-other-dirs-gmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
212 $(MAKE) $(MFLAGS) -C ../lib-src install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
213 $(MAKE) $(MFLAGS) -C ../src install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
214 $(MAKE) $(MFLAGS) -C ../lisp install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
215 $(MAKE) $(MFLAGS) -C ../leim install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
216
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
217 #
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
218 # Maintenance
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 45811
diff changeset
219 #
41806
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
220 clean: clean-other-dirs-$(MAKETYPE)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
221 - $(DEL) *~ $(COMPILER_TEMP_FILES)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
222 - $(DEL_TREE) $(OBJDIR)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
223 - $(DEL) ../etc/DOC ../etc/DOC-X
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
224
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
225 clean-other-dirs-nmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
226 cd ..\lib-src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
227 $(MAKE) $(MFLAGS) clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
228 cd ..\src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
229 $(MAKE) $(MFLAGS) clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
230 cd ..\lisp
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
231 $(MAKE) $(MFLAGS) clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
232 cd ..\leim
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
233 $(MAKE) $(MFLAGS) clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
234 cd ..\nt
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
235
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
236 clean-other-dirs-gmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
237 $(MAKE) $(MFLAGS) -C ../lib-src clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
238 $(MAKE) $(MFLAGS) -C ../src clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
239 $(MAKE) $(MFLAGS) -C ../lisp clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
240 $(MAKE) $(MFLAGS) -C ../leim clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
241
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
242 cleanall-other-dirs-nmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
243 cd ..\lib-src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
244 $(MAKE) $(MFLAGS) cleanall
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
245 cd ..\src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
246 $(MAKE) $(MFLAGS) cleanall
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
247 cd ..\nt
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
248
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
249 cleanall-other-dirs-gmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
250 $(MAKE) $(MFLAGS) -C ../lib-src cleanall
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
251 $(MAKE) $(MFLAGS) -C ../src cleanall
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
252
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
253 cleanall: clean cleanall-other-dirs-$(MAKETYPE)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
254 - $(DEL_TREE) obj
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
255 - $(DEL_TREE) obj-spd
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
256 - $(DEL_TREE) oo
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
257 - $(DEL_TREE) oo-spd
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
258
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
259 realclean: cleanall
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
260 - $(DEL_TREE) ../bin