annotate nt/makefile.w32-in @ 45563:242a164e3126

(x_display_and_set_cursor): Change the cursor in the same way for blinked-off state and for a nonselected window.
author Richard M. Stallman <rms@gnu.org>
date Tue, 28 May 2002 20:27:59 +0000
parents 5040cc502801
children a834f8a38ad4
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.
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
7 #
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.
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
12 #
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.
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
17 #
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 #
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
72 all: which-sh $(BLD) $(ALL) all-other-dirs-$(MAKETYPE)
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
42026
dbb37240de5f (bootstrap): Build addsection program before
Andrew Innes <andrewi@gnu.org>
parents: 41806
diff changeset
108 bootstrap: addsection bootstrap-$(MAKETYPE) all
41806
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
109
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
110 bootstrap-nmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
111 cd ..\lisp
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
112 $(MAKE) $(MFLAGS) bootstrap-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
113 cd ..\src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
114 $(MAKE) $(MFLAGS) clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
115 cd ..\lib-src
44495
5040cc502801 (bootstrap-nmake, bootstrap-gmake): Make DOC after compiling .el files.
Juanma Barranquero <lekktu@gmail.com>
parents: 42026
diff changeset
116 $(MAKE) $(MFLAGS) clean
41806
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
117 cd ..\src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
118 $(MAKE) $(MFLAGS) bootstrap
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
119 $(MAKE) $(MFLAGS) bootstrap-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
120 cd ..\lisp
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
121 $(MAKE) $(MFLAGS) bootstrap
44495
5040cc502801 (bootstrap-nmake, bootstrap-gmake): Make DOC after compiling .el files.
Juanma Barranquero <lekktu@gmail.com>
parents: 42026
diff changeset
122 cd ..\lib-src
5040cc502801 (bootstrap-nmake, bootstrap-gmake): Make DOC after compiling .el files.
Juanma Barranquero <lekktu@gmail.com>
parents: 42026
diff changeset
123 $(MAKE) $(MFLAGS) DOC
41806
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
124 cd ..\nt
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
125
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
126 bootstrap-gmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
127 $(MAKE) $(MFLAGS) -C ../lisp bootstrap-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
128 $(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
129 $(MAKE) $(MFLAGS) -C ../lib-src clean
41806
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
130 $(MAKE) $(MFLAGS) -C ../src bootstrap
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
131 $(MAKE) $(MFLAGS) -C ../src bootstrap-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
132 $(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
133 $(MAKE) $(MFLAGS) -C ../lib-src DOC
41806
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
134
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
135 bootstrap-clean: bootstrap-clean-$(MAKETYPE)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
136
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
137 bootstrap-clean-nmake:
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-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
140 cd ..\lisp
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
141 $(MAKE) $(MFLAGS) bootstrap-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
142
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
143 bootstrap-clean-gmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
144 $(MAKE) $(MFLAGS) -C ../src bootstrap-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
145 $(MAKE) $(MFLAGS) -C ../lisp bootstrap-clean
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 $(INSTALL_DIR):
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
148 - mkdir "$(INSTALL_DIR)"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
149
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
150 $(INSTALL_DIR)/bin: $(INSTALL_DIR)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
151 - mkdir "$(INSTALL_DIR)/bin"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
152
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
153 #
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
154 # Build and install emacs in INSTALL_DIR
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 install: all $(INSTALL_DIR)/bin install-other-dirs-$(MAKETYPE)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
157 - $(CP) $(BLD)/addpm.exe $(INSTALL_DIR)/bin
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
158 - $(CP) $(BLD)/ddeclient.exe $(INSTALL_DIR)/bin
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
159 - $(CP) $(BLD)/cmdproxy.exe $(INSTALL_DIR)/bin
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
160 - $(CP) $(BLD)/runemacs.exe $(INSTALL_DIR)/bin
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
161 - $(CP) ../lib-src/fns-*.el $(INSTALL_DIR)/bin
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
162 - "$(INSTALL_DIR)/bin/addpm" /q
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
163 - $(DEL) ../same-dir.tst
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
164 - $(DEL) $(INSTALL_DIR)/same-dir.tst
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
165 echo SameDirTest > "$(INSTALL_DIR)/same-dir.tst"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
166 - mkdir "$(INSTALL_DIR)/etc"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
167 - mkdir "$(INSTALL_DIR)/info"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
168 - mkdir "$(INSTALL_DIR)/lock"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
169 - mkdir "$(INSTALL_DIR)/data"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
170 - mkdir "$(INSTALL_DIR)/site-lisp"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
171 - mkdir "$(INSTALL_DIR)/etc/icons"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
172 $(IFNOTSAMEDIR) $(CP) ../site-lisp/subdirs.el $(INSTALL_DIR)/site-lisp $(ENDIF)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
173 $(IFNOTSAMEDIR) $(CP_DIR) ../etc $(INSTALL_DIR) $(ENDIF)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
174 - $(CP_DIR) icons $(INSTALL_DIR)/etc
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
175 $(IFNOTSAMEDIR) $(CP_DIR) ../info $(INSTALL_DIR) $(ENDIF)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
176 - $(DEL) ../same-dir.tst
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
177 - $(DEL) $(INSTALL_DIR)/same-dir.tst
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
178
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
179 install-other-dirs-nmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
180 cd ..\lib-src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
181 $(MAKE) $(MFLAGS) install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
182 cd ..\src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
183 $(MAKE) $(MFLAGS) install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
184 cd ..\lisp
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
185 $(MAKE) $(MFLAGS) install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
186 cd ..\leim
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
187 $(MAKE) $(MFLAGS) install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
188 cd ..\nt
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
189
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
190 install-other-dirs-gmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
191 $(MAKE) $(MFLAGS) -C ../lib-src install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
192 $(MAKE) $(MFLAGS) -C ../src install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
193 $(MAKE) $(MFLAGS) -C ../lisp install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
194 $(MAKE) $(MFLAGS) -C ../leim install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
195
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
196 #
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
197 # Maintenance
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
198 #
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
199 clean: clean-other-dirs-$(MAKETYPE)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
200 - $(DEL) *~ $(COMPILER_TEMP_FILES)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
201 - $(DEL_TREE) $(OBJDIR)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
202 - $(DEL) ../etc/DOC ../etc/DOC-X
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
203
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
204 clean-other-dirs-nmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
205 cd ..\lib-src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
206 $(MAKE) $(MFLAGS) clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
207 cd ..\src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
208 $(MAKE) $(MFLAGS) clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
209 cd ..\lisp
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
210 $(MAKE) $(MFLAGS) clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
211 cd ..\leim
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
212 $(MAKE) $(MFLAGS) clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
213 cd ..\nt
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
214
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
215 clean-other-dirs-gmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
216 $(MAKE) $(MFLAGS) -C ../lib-src clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
217 $(MAKE) $(MFLAGS) -C ../src clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
218 $(MAKE) $(MFLAGS) -C ../lisp clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
219 $(MAKE) $(MFLAGS) -C ../leim clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
220
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
221 cleanall-other-dirs-nmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
222 cd ..\lib-src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
223 $(MAKE) $(MFLAGS) cleanall
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
224 cd ..\src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
225 $(MAKE) $(MFLAGS) cleanall
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
226 cd ..\nt
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
227
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
228 cleanall-other-dirs-gmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
229 $(MAKE) $(MFLAGS) -C ../lib-src cleanall
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
230 $(MAKE) $(MFLAGS) -C ../src cleanall
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
231
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
232 cleanall: clean cleanall-other-dirs-$(MAKETYPE)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
233 - $(DEL_TREE) obj
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
234 - $(DEL_TREE) obj-spd
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
235 - $(DEL_TREE) oo
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
236 - $(DEL_TREE) oo-spd
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
237
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
238 realclean: cleanall
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
239 - $(DEL_TREE) ../bin