annotate nt/makefile.w32-in @ 89087:bab63e51dbaa

(set-case-syntax-pair): Remove check on byte lengths.
author Dave Love <fx@gnu.org>
date Sat, 07 Sep 2002 23:54:43 +0000
parents dbb37240de5f
children 5040cc502801
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
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
116 $(MAKE) $(MFLAGS) clean DOC
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
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
122 cd ..\nt
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
123
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
124 bootstrap-gmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
125 $(MAKE) $(MFLAGS) -C ../lisp bootstrap-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
126 $(MAKE) $(MFLAGS) -C ../src clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
127 $(MAKE) $(MFLAGS) -C ../lib-src clean DOC
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
128 $(MAKE) $(MFLAGS) -C ../src bootstrap
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
129 $(MAKE) $(MFLAGS) -C ../src bootstrap-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
130 $(MAKE) $(MFLAGS) -C ../lisp bootstrap
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
131
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
132 bootstrap-clean: bootstrap-clean-$(MAKETYPE)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
133
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
134 bootstrap-clean-nmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
135 cd ..\src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
136 $(MAKE) $(MFLAGS) bootstrap-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
137 cd ..\lisp
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
138 $(MAKE) $(MFLAGS) bootstrap-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
139
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
140 bootstrap-clean-gmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
141 $(MAKE) $(MFLAGS) -C ../src bootstrap-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
142 $(MAKE) $(MFLAGS) -C ../lisp bootstrap-clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
143
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
144 $(INSTALL_DIR):
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
145 - mkdir "$(INSTALL_DIR)"
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)/bin: $(INSTALL_DIR)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
148 - mkdir "$(INSTALL_DIR)/bin"
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 #
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
151 # Build and install emacs in INSTALL_DIR
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 install: all $(INSTALL_DIR)/bin install-other-dirs-$(MAKETYPE)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
154 - $(CP) $(BLD)/addpm.exe $(INSTALL_DIR)/bin
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
155 - $(CP) $(BLD)/ddeclient.exe $(INSTALL_DIR)/bin
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
156 - $(CP) $(BLD)/cmdproxy.exe $(INSTALL_DIR)/bin
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
157 - $(CP) $(BLD)/runemacs.exe $(INSTALL_DIR)/bin
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
158 - $(CP) ../lib-src/fns-*.el $(INSTALL_DIR)/bin
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
159 - "$(INSTALL_DIR)/bin/addpm" /q
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
160 - $(DEL) ../same-dir.tst
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
161 - $(DEL) $(INSTALL_DIR)/same-dir.tst
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
162 echo SameDirTest > "$(INSTALL_DIR)/same-dir.tst"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
163 - mkdir "$(INSTALL_DIR)/etc"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
164 - mkdir "$(INSTALL_DIR)/info"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
165 - mkdir "$(INSTALL_DIR)/lock"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
166 - mkdir "$(INSTALL_DIR)/data"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
167 - mkdir "$(INSTALL_DIR)/site-lisp"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
168 - mkdir "$(INSTALL_DIR)/etc/icons"
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
169 $(IFNOTSAMEDIR) $(CP) ../site-lisp/subdirs.el $(INSTALL_DIR)/site-lisp $(ENDIF)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
170 $(IFNOTSAMEDIR) $(CP_DIR) ../etc $(INSTALL_DIR) $(ENDIF)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
171 - $(CP_DIR) icons $(INSTALL_DIR)/etc
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
172 $(IFNOTSAMEDIR) $(CP_DIR) ../info $(INSTALL_DIR) $(ENDIF)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
173 - $(DEL) ../same-dir.tst
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
174 - $(DEL) $(INSTALL_DIR)/same-dir.tst
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
175
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
176 install-other-dirs-nmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
177 cd ..\lib-src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
178 $(MAKE) $(MFLAGS) install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
179 cd ..\src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
180 $(MAKE) $(MFLAGS) install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
181 cd ..\lisp
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
182 $(MAKE) $(MFLAGS) install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
183 cd ..\leim
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
184 $(MAKE) $(MFLAGS) install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
185 cd ..\nt
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
186
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
187 install-other-dirs-gmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
188 $(MAKE) $(MFLAGS) -C ../lib-src install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
189 $(MAKE) $(MFLAGS) -C ../src install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
190 $(MAKE) $(MFLAGS) -C ../lisp install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
191 $(MAKE) $(MFLAGS) -C ../leim install
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
192
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
193 #
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
194 # Maintenance
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 clean: clean-other-dirs-$(MAKETYPE)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
197 - $(DEL) *~ $(COMPILER_TEMP_FILES)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
198 - $(DEL_TREE) $(OBJDIR)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
199 - $(DEL) ../etc/DOC ../etc/DOC-X
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
200
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
201 clean-other-dirs-nmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
202 cd ..\lib-src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
203 $(MAKE) $(MFLAGS) clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
204 cd ..\src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
205 $(MAKE) $(MFLAGS) clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
206 cd ..\lisp
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
207 $(MAKE) $(MFLAGS) clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
208 cd ..\leim
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
209 $(MAKE) $(MFLAGS) clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
210 cd ..\nt
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
211
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
212 clean-other-dirs-gmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
213 $(MAKE) $(MFLAGS) -C ../lib-src clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
214 $(MAKE) $(MFLAGS) -C ../src clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
215 $(MAKE) $(MFLAGS) -C ../lisp clean
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
216 $(MAKE) $(MFLAGS) -C ../leim clean
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 cleanall-other-dirs-nmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
219 cd ..\lib-src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
220 $(MAKE) $(MFLAGS) cleanall
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
221 cd ..\src
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
222 $(MAKE) $(MFLAGS) cleanall
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
223 cd ..\nt
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 cleanall-other-dirs-gmake:
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
226 $(MAKE) $(MFLAGS) -C ../lib-src cleanall
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
227 $(MAKE) $(MFLAGS) -C ../src cleanall
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
228
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
229 cleanall: clean cleanall-other-dirs-$(MAKETYPE)
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
230 - $(DEL_TREE) obj
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
231 - $(DEL_TREE) obj-spd
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
232 - $(DEL_TREE) oo
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
233 - $(DEL_TREE) oo-spd
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
234
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
235 realclean: cleanall
afe310730a69 (bootstrap-nmake):
Andrew Innes <andrewi@gnu.org>
parents: 39113
diff changeset
236 - $(DEL_TREE) ../bin