Mercurial > emacs
annotate nt/makefile.w32-in @ 74879:17306b206515
(Variable Definitions): Document new name custom-add-frequent-value.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 24 Dec 2006 16:36:22 +0000 |
parents | 226713cc7be9 |
children | dcbd4f4f0326 |
rev | line source |
---|---|
55092
9077e3f7cd49
Add "-*- makefile -*-" mode tag.
Juanma Barranquero <lekktu@gmail.com>
parents:
54329
diff
changeset
|
1 # -*- Makefile -*- for GNU Emacs on the Microsoft W32 API. |
64890
3723093a21fd
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64083
diff
changeset
|
2 # Copyright (C) 2000, 2001, 2002, 2003, 2004, |
68648
067115a6e738
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64890
diff
changeset
|
3 # 2005, 2006 Free Software Foundation, Inc. |
41806 | 4 # |
5 # Top level makefile for building GNU Emacs on Windows NT | |
6 # | |
7 # This file is part of GNU Emacs. | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45811
diff
changeset
|
8 # |
41806 | 9 # GNU Emacs is free software; you can redistribute it and/or modify |
10 # it under the terms of the GNU General Public License as published by | |
11 # the Free Software Foundation; either version 2, or (at your option) | |
12 # any later version. | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45811
diff
changeset
|
13 # |
41806 | 14 # GNU Emacs is distributed in the hope that it will be useful, |
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 # GNU General Public License for more details. | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45811
diff
changeset
|
18 # |
41806 | 19 # You should have received a copy of the GNU General Public License |
20 # along with GNU Emacs; see the file COPYING. If not, write to | |
64083 | 21 # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
22 # Boston, MA 02110-1301, USA. | |
41806 | 23 |
24 ALL = addpm ddeclient runemacs cmdproxy addsection preprep | |
25 | |
26 .PHONY: $(ALL) | |
27 | |
28 TRES = $(BLD)/emacs.res | |
29 | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
30 XMFLAGS = |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
31 |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
32 addpm: stamp_BLD $(BLD)/addpm.exe |
41806 | 33 $(BLD)/addpm.exe: $(BLD)/addpm.$(O) |
34 $(LINK) $(LINK_OUT)$@ \ | |
35 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32) | |
36 | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
37 ddeclient: stamp_BLD $(BLD)/ddeclient.exe |
41806 | 38 $(BLD)/ddeclient.exe: $(BLD)/ddeclient.$(O) |
39 $(LINK) $(LINK_OUT)$@ \ | |
40 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32) | |
41 | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
42 cmdproxy: stamp_BLD $(BLD)/cmdproxy.exe |
41806 | 43 $(BLD)/cmdproxy.exe: $(BLD)/cmdproxy.$(O) |
44 $(LINK) $(LINK_OUT)$@ \ | |
45 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32) | |
46 | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
47 addsection: stamp_BLD $(BLD)/addsection.exe |
41806 | 48 $(BLD)/addsection.exe: $(BLD)/addsection.$(O) |
49 $(LINK) $(LINK_OUT)$@ \ | |
50 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32) | |
51 | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
52 preprep: stamp_BLD $(BLD)/preprep.exe |
41806 | 53 $(BLD)/preprep.exe: $(BLD)/preprep.$(O) |
54 $(LINK) $(LINK_OUT)$@ \ | |
55 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) | |
56 | |
57 # | |
58 # The resource file. NT 3.10 requires the use of cvtres; even though | |
59 # it is not necessary on later versions, it is still ok to use it. | |
60 # | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
61 $(TRES): emacs.rc stamp_BLD |
74877
226713cc7be9
($(TRES)): Don't use $<, as nmake supports it only in implicit rules.
Eli Zaretskii <eliz@gnu.org>
parents:
74841
diff
changeset
|
62 $(RC) $(RC_OUT)$(BLD)/emacs.res emacs.rc |
41806 | 63 |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
64 runemacs: stamp_BLD $(BLD)/runemacs.exe |
41806 | 65 $(BLD)/runemacs.exe: $(BLD)/runemacs.$(O) $(TRES) |
66 $(LINK) $(LINK_OUT)$@ $(SUBSYSTEM_WINDOWS) \ | |
67 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32) | |
68 | |
69 which-sh: | |
70 @echo Using $(THE_SHELL) as shell. | |
71 | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
72 # These depend on stamp_BLD to make sure the $(BLD) directory is created |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
73 # before the compilation begins, even if Make runs several commands |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
74 # in parallel under "make -j". |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
75 # |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
76 $(BLD)/addpm.$(O) $(BLD)/ddeclient.$(O) $(BLD)/runemacs.$(O) $(BLD)/cmdproxy.$(O) $(BLD)/addsection.$(O) $(BLD)/preprep.$(O): stamp_BLD |
74780
7ae36b2cbdc6
($(TRES)): Depend on $(BLD). Use $< instead of $(ALL_DEPS).
Eli Zaretskii <eliz@gnu.org>
parents:
69447
diff
changeset
|
77 |
41806 | 78 # |
79 # Build emacs | |
80 # | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
81 all: which-sh stamp_BLD $(ALL) maybe-bootstrap all-other-dirs-$(MAKETYPE) |
41806 | 82 |
74780
7ae36b2cbdc6
($(TRES)): Depend on $(BLD). Use $< instead of $(ALL_DEPS).
Eli Zaretskii <eliz@gnu.org>
parents:
69447
diff
changeset
|
83 all-other-dirs-nmake: addsection |
41806 | 84 cd ..\lib-src |
74841
b28d17e7d21a
(all-other-dirs-nmake, recompile-nmake): Don't use $(XMFLAGS).
Eli Zaretskii <eliz@gnu.org>
parents:
74817
diff
changeset
|
85 $(MAKE) $(MFLAGS) all |
41806 | 86 cd ..\src |
74841
b28d17e7d21a
(all-other-dirs-nmake, recompile-nmake): Don't use $(XMFLAGS).
Eli Zaretskii <eliz@gnu.org>
parents:
74817
diff
changeset
|
87 $(MAKE) $(MFLAGS) all |
41806 | 88 cd ..\lisp |
74841
b28d17e7d21a
(all-other-dirs-nmake, recompile-nmake): Don't use $(XMFLAGS).
Eli Zaretskii <eliz@gnu.org>
parents:
74817
diff
changeset
|
89 $(MAKE) $(MFLAGS) all |
41806 | 90 cd ..\leim |
74841
b28d17e7d21a
(all-other-dirs-nmake, recompile-nmake): Don't use $(XMFLAGS).
Eli Zaretskii <eliz@gnu.org>
parents:
74817
diff
changeset
|
91 $(MAKE) $(MFLAGS) all |
41806 | 92 cd ..\nt |
93 | |
74780
7ae36b2cbdc6
($(TRES)): Depend on $(BLD). Use $< instead of $(ALL_DEPS).
Eli Zaretskii <eliz@gnu.org>
parents:
69447
diff
changeset
|
94 all-other-dirs-gmake: addsection |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
95 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src all |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
96 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src all |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
97 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp all |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
98 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim all |
41806 | 99 |
100 recompile: recompile-$(MAKETYPE) | |
101 | |
102 recompile-nmake: | |
103 cd ..\lisp | |
74841
b28d17e7d21a
(all-other-dirs-nmake, recompile-nmake): Don't use $(XMFLAGS).
Eli Zaretskii <eliz@gnu.org>
parents:
74817
diff
changeset
|
104 $(MAKE) $(MFLAGS) recompile |
41806 | 105 cd ..\nt |
106 | |
107 recompile-gmake: | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
108 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp recompile |
41806 | 109 |
110 #### Bootstrapping. | |
111 | |
112 ### This is meant for Emacs maintainers only. It first cleans the | |
113 ### lisp subdirectory, removing all compiled Lisp files. Then a | |
114 ### special emacs executable is built from Lisp sources, which is then | |
115 ### used to compile Lisp files. The last step is a "normal" make. | |
116 | |
45811
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
117 maybe-bootstrap: maybe-bootstrap-$(SHELLTYPE) |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
118 |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
119 # 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
|
120 doit: |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
121 |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
122 maybe-bootstrap-CMD: doit |
56512
d341e83af4f2
Removed the various "echo." lines from lisp\makefile.w32-in and nt\makefile.w32-in.
Ben Key <bkey1@tampabay.rr.com>
parents:
56026
diff
changeset
|
123 @echo . |
45811
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
124 @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
|
125 @if not EXIST ..\lisp\abbrev.elc echo do 'make bootstrap' or create 'lisp/abbrev.elc' somehow |
56512
d341e83af4f2
Removed the various "echo." lines from lisp\makefile.w32-in and nt\makefile.w32-in.
Ben Key <bkey1@tampabay.rr.com>
parents:
56026
diff
changeset
|
126 @echo . |
45811
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
127 @if not EXIST ..\lisp\abbrev.elc exit -1 |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
128 |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
129 maybe-bootstrap-SH: doit |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
130 @if [ ! -f ../lisp/abbrev.elc ] ; then \ |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
131 echo; \ |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
132 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
|
133 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
|
134 echo; \ |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
135 exit -1; \ |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
136 fi |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
137 |
74817
72b5e33cca58
(bootstrap): Make `all' explicitly in a recursive Make.
Eli Zaretskii <eliz@gnu.org>
parents:
74816
diff
changeset
|
138 bootstrap: addsection bootstrap-$(MAKETYPE) |
72b5e33cca58
(bootstrap): Make `all' explicitly in a recursive Make.
Eli Zaretskii <eliz@gnu.org>
parents:
74816
diff
changeset
|
139 $(MAKE) $(MFLAGS) $(XMFLAGS) all |
41806 | 140 |
74780
7ae36b2cbdc6
($(TRES)): Depend on $(BLD). Use $< instead of $(ALL_DEPS).
Eli Zaretskii <eliz@gnu.org>
parents:
69447
diff
changeset
|
141 bootstrap-nmake: addsection |
41806 | 142 cd ..\lisp |
143 $(MAKE) $(MFLAGS) bootstrap-clean | |
144 cd ..\src | |
145 $(MAKE) $(MFLAGS) clean | |
146 cd ..\lib-src | |
44495
5040cc502801
(bootstrap-nmake, bootstrap-gmake): Make DOC after compiling .el files.
Juanma Barranquero <lekktu@gmail.com>
parents:
42026
diff
changeset
|
147 $(MAKE) $(MFLAGS) clean |
41806 | 148 cd ..\src |
149 $(MAKE) $(MFLAGS) bootstrap | |
150 $(MAKE) $(MFLAGS) bootstrap-clean | |
151 cd ..\lisp | |
55935
7d801d9fee5a
(bootstrap-nmake): When nmake'ing bootstrap on the lisp/ directory, set SHELL to
Juanma Barranquero <lekktu@gmail.com>
parents:
55337
diff
changeset
|
152 $(MAKE) $(MFLAGS) SHELL=$(SHELLTYPE) bootstrap |
44495
5040cc502801
(bootstrap-nmake, bootstrap-gmake): Make DOC after compiling .el files.
Juanma Barranquero <lekktu@gmail.com>
parents:
42026
diff
changeset
|
153 cd ..\lib-src |
5040cc502801
(bootstrap-nmake, bootstrap-gmake): Make DOC after compiling .el files.
Juanma Barranquero <lekktu@gmail.com>
parents:
42026
diff
changeset
|
154 $(MAKE) $(MFLAGS) DOC |
41806 | 155 cd ..\nt |
156 | |
74780
7ae36b2cbdc6
($(TRES)): Depend on $(BLD). Use $< instead of $(ALL_DEPS).
Eli Zaretskii <eliz@gnu.org>
parents:
69447
diff
changeset
|
157 bootstrap-gmake: addsection |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
158 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap-clean |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
159 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src clean |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
160 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src clean |
74841
b28d17e7d21a
(all-other-dirs-nmake, recompile-nmake): Don't use $(XMFLAGS).
Eli Zaretskii <eliz@gnu.org>
parents:
74817
diff
changeset
|
161 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
162 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap-clean |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
163 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
164 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src DOC |
41806 | 165 |
166 bootstrap-clean: bootstrap-clean-$(MAKETYPE) | |
167 | |
168 bootstrap-clean-nmake: | |
169 cd ..\src | |
170 $(MAKE) $(MFLAGS) bootstrap-clean | |
171 cd ..\lisp | |
172 $(MAKE) $(MFLAGS) bootstrap-clean | |
173 | |
174 bootstrap-clean-gmake: | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
175 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap-clean |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
176 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap-clean |
41806 | 177 |
178 $(INSTALL_DIR): | |
179 - mkdir "$(INSTALL_DIR)" | |
180 | |
181 $(INSTALL_DIR)/bin: $(INSTALL_DIR) | |
182 - mkdir "$(INSTALL_DIR)/bin" | |
183 | |
184 # | |
185 # Build and install emacs in INSTALL_DIR | |
186 # | |
187 install: all $(INSTALL_DIR)/bin install-other-dirs-$(MAKETYPE) | |
188 - $(CP) $(BLD)/addpm.exe $(INSTALL_DIR)/bin | |
189 - $(CP) $(BLD)/ddeclient.exe $(INSTALL_DIR)/bin | |
190 - $(CP) $(BLD)/cmdproxy.exe $(INSTALL_DIR)/bin | |
191 - $(CP) $(BLD)/runemacs.exe $(INSTALL_DIR)/bin | |
69447
ba388b0284f4
(install): Use -q when invoking addpm. Avoids problem with MSYS trying
Jason Rumney <jasonr@gnu.org>
parents:
68648
diff
changeset
|
192 - "$(INSTALL_DIR)/bin/addpm" -q |
41806 | 193 - $(DEL) ../same-dir.tst |
194 - $(DEL) $(INSTALL_DIR)/same-dir.tst | |
195 echo SameDirTest > "$(INSTALL_DIR)/same-dir.tst" | |
196 - mkdir "$(INSTALL_DIR)/etc" | |
197 - mkdir "$(INSTALL_DIR)/info" | |
198 - mkdir "$(INSTALL_DIR)/lock" | |
199 - mkdir "$(INSTALL_DIR)/data" | |
200 - mkdir "$(INSTALL_DIR)/site-lisp" | |
201 - mkdir "$(INSTALL_DIR)/etc/icons" | |
202 $(IFNOTSAMEDIR) $(CP) ../site-lisp/subdirs.el $(INSTALL_DIR)/site-lisp $(ENDIF) | |
203 $(IFNOTSAMEDIR) $(CP_DIR) ../etc $(INSTALL_DIR) $(ENDIF) | |
204 - $(CP_DIR) icons $(INSTALL_DIR)/etc | |
205 $(IFNOTSAMEDIR) $(CP_DIR) ../info $(INSTALL_DIR) $(ENDIF) | |
206 - $(DEL) ../same-dir.tst | |
207 - $(DEL) $(INSTALL_DIR)/same-dir.tst | |
208 | |
209 install-other-dirs-nmake: | |
210 cd ..\lib-src | |
211 $(MAKE) $(MFLAGS) install | |
212 cd ..\src | |
213 $(MAKE) $(MFLAGS) install | |
214 cd ..\lisp | |
215 $(MAKE) $(MFLAGS) install | |
216 cd ..\leim | |
217 $(MAKE) $(MFLAGS) install | |
218 cd ..\nt | |
219 | |
220 install-other-dirs-gmake: | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
221 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src install |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
222 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src install |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
223 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp install |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
224 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim install |
41806 | 225 |
52424
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
226 force-info: |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
227 # Note that man/makefile knows how to |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
228 # put the info files in $(infodir), |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
229 # so we can do ok running make in the build dir. |
55337
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
230 info: force-info info-$(MAKETYPE) |
52424
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
231 |
55337
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
232 info-nmake: |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
233 cd ..\man |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
234 $(MAKE) $(MFLAGS) info |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
235 cd ..\lispref |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
236 $(MAKE) $(MFLAGS) info |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
237 cd ..\lispintro |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
238 $(MAKE) $(MFLAGS) info |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
239 |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
240 info-gmake: |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
241 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../man info |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
242 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lispref info |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
243 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lispintro info |
41806 | 244 # |
245 # Maintenance | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45811
diff
changeset
|
246 # |
41806 | 247 clean: clean-other-dirs-$(MAKETYPE) |
248 - $(DEL) *~ $(COMPILER_TEMP_FILES) | |
249 - $(DEL_TREE) $(OBJDIR) | |
74816 | 250 - $(DEL) stamp_BLD |
41806 | 251 - $(DEL) ../etc/DOC ../etc/DOC-X |
252 | |
253 clean-other-dirs-nmake: | |
254 cd ..\lib-src | |
255 $(MAKE) $(MFLAGS) clean | |
256 cd ..\src | |
257 $(MAKE) $(MFLAGS) clean | |
258 cd ..\lisp | |
259 $(MAKE) $(MFLAGS) clean | |
52424
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
260 cd ..\lispintro |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
261 $(MAKE) $(MFLAGS) clean |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
262 cd ..\lispref |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
263 $(MAKE) $(MFLAGS) clean |
41806 | 264 cd ..\leim |
265 $(MAKE) $(MFLAGS) clean | |
52424
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
266 cd ..\man |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
267 $(MAKE) $(MFLAGS) clean |
41806 | 268 cd ..\nt |
269 | |
270 clean-other-dirs-gmake: | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
271 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src clean |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
272 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src clean |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
273 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp clean |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
274 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim clean |
41806 | 275 |
276 cleanall-other-dirs-nmake: | |
277 cd ..\lib-src | |
278 $(MAKE) $(MFLAGS) cleanall | |
279 cd ..\src | |
280 $(MAKE) $(MFLAGS) cleanall | |
281 cd ..\nt | |
282 | |
283 cleanall-other-dirs-gmake: | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
284 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src cleanall |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
285 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src cleanall |
41806 | 286 |
287 cleanall: clean cleanall-other-dirs-$(MAKETYPE) | |
288 - $(DEL_TREE) obj | |
289 - $(DEL_TREE) obj-spd | |
290 - $(DEL_TREE) oo | |
291 - $(DEL_TREE) oo-spd | |
292 | |
293 realclean: cleanall | |
294 - $(DEL_TREE) ../bin |