Mercurial > emacs
annotate nt/makefile.w32-in @ 80699:2ba6b3010dbe
(holiday-julian): Fix a problem with holidays in the last fortnight in
Julian October (sync from trunk 2008-03-31).
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sun, 10 Aug 2008 20:05:45 +0000 |
parents | 82cbd6e365cf |
children | ca9efc5939fc |
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, |
79730 | 3 # 2005, 2006, 2007, 2008 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 | |
78246
075eb71f218d
Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents:
78172
diff
changeset
|
11 # the Free Software Foundation; either version 3, or (at your option) |
41806 | 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 |
74935
dcbd4f4f0326
Add comment about DOS EOLs in this file.
Eli Zaretskii <eliz@gnu.org>
parents:
74877
diff
changeset
|
24 # FIXME: This file uses DOS EOLs. Convert to Unix after 22.1 is out |
dcbd4f4f0326
Add comment about DOS EOLs in this file.
Eli Zaretskii <eliz@gnu.org>
parents:
74877
diff
changeset
|
25 # (and remove or replace this comment). |
dcbd4f4f0326
Add comment about DOS EOLs in this file.
Eli Zaretskii <eliz@gnu.org>
parents:
74877
diff
changeset
|
26 |
80480
8f290e24bc3a
(CLIENTRES): New variable and build target.
Jason Rumney <jasonr@gnu.org>
parents:
79730
diff
changeset
|
27 TRES = $(BLD)/emacs.res |
8f290e24bc3a
(CLIENTRES): New variable and build target.
Jason Rumney <jasonr@gnu.org>
parents:
79730
diff
changeset
|
28 CLIENTRES = $(BLD)/emacsclient.res |
8f290e24bc3a
(CLIENTRES): New variable and build target.
Jason Rumney <jasonr@gnu.org>
parents:
79730
diff
changeset
|
29 |
8f290e24bc3a
(CLIENTRES): New variable and build target.
Jason Rumney <jasonr@gnu.org>
parents:
79730
diff
changeset
|
30 XMFLAGS = |
8f290e24bc3a
(CLIENTRES): New variable and build target.
Jason Rumney <jasonr@gnu.org>
parents:
79730
diff
changeset
|
31 |
80500
82cbd6e365cf
(ALL): Move $(CLIENTRES) from here...
Eli Zaretskii <eliz@gnu.org>
parents:
80480
diff
changeset
|
32 ALL = addpm ddeclient runemacs cmdproxy addsection preprep |
41806 | 33 |
34 .PHONY: $(ALL) | |
35 | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
36 |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
37 addpm: stamp_BLD $(BLD)/addpm.exe |
41806 | 38 $(BLD)/addpm.exe: $(BLD)/addpm.$(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 ddeclient: stamp_BLD $(BLD)/ddeclient.exe |
41806 | 43 $(BLD)/ddeclient.exe: $(BLD)/ddeclient.$(O) |
44 $(LINK) $(LINK_OUT)$@ \ | |
45 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32) | |
46 | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
47 cmdproxy: stamp_BLD $(BLD)/cmdproxy.exe |
41806 | 48 $(BLD)/cmdproxy.exe: $(BLD)/cmdproxy.$(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 addsection: stamp_BLD $(BLD)/addsection.exe |
41806 | 53 $(BLD)/addsection.exe: $(BLD)/addsection.$(O) |
54 $(LINK) $(LINK_OUT)$@ \ | |
55 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32) | |
56 | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
57 preprep: stamp_BLD $(BLD)/preprep.exe |
41806 | 58 $(BLD)/preprep.exe: $(BLD)/preprep.$(O) |
59 $(LINK) $(LINK_OUT)$@ \ | |
60 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) | |
61 | |
62 # | |
63 # The resource file. NT 3.10 requires the use of cvtres; even though | |
64 # it is not necessary on later versions, it is still ok to use it. | |
65 # | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
66 $(TRES): emacs.rc stamp_BLD |
80480
8f290e24bc3a
(CLIENTRES): New variable and build target.
Jason Rumney <jasonr@gnu.org>
parents:
79730
diff
changeset
|
67 $(RC) $(RC_OUT)$(TRES) emacs.rc |
8f290e24bc3a
(CLIENTRES): New variable and build target.
Jason Rumney <jasonr@gnu.org>
parents:
79730
diff
changeset
|
68 |
8f290e24bc3a
(CLIENTRES): New variable and build target.
Jason Rumney <jasonr@gnu.org>
parents:
79730
diff
changeset
|
69 $(CLIENTRES): emacsclient.rc stamp_BLD |
8f290e24bc3a
(CLIENTRES): New variable and build target.
Jason Rumney <jasonr@gnu.org>
parents:
79730
diff
changeset
|
70 $(RC) $(RC_OUT)$(CLIENTRES) emacsclient.rc |
41806 | 71 |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
72 runemacs: stamp_BLD $(BLD)/runemacs.exe |
41806 | 73 $(BLD)/runemacs.exe: $(BLD)/runemacs.$(O) $(TRES) |
74 $(LINK) $(LINK_OUT)$@ $(SUBSYSTEM_WINDOWS) \ | |
75 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32) | |
76 | |
77 which-sh: | |
78 @echo Using $(THE_SHELL) as shell. | |
79 | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
80 # 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
|
81 # before the compilation begins, even if Make runs several commands |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
82 # in parallel under "make -j". |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
83 # |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
84 $(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
|
85 |
41806 | 86 # |
87 # Build emacs | |
88 # | |
80500
82cbd6e365cf
(ALL): Move $(CLIENTRES) from here...
Eli Zaretskii <eliz@gnu.org>
parents:
80480
diff
changeset
|
89 all: which-sh stamp_BLD $(ALL) $(CLIENTRES) maybe-bootstrap all-other-dirs-$(MAKETYPE) |
41806 | 90 |
74780
7ae36b2cbdc6
($(TRES)): Depend on $(BLD). Use $< instead of $(ALL_DEPS).
Eli Zaretskii <eliz@gnu.org>
parents:
69447
diff
changeset
|
91 all-other-dirs-nmake: addsection |
41806 | 92 cd ..\lib-src |
74841
b28d17e7d21a
(all-other-dirs-nmake, recompile-nmake): Don't use $(XMFLAGS).
Eli Zaretskii <eliz@gnu.org>
parents:
74817
diff
changeset
|
93 $(MAKE) $(MFLAGS) all |
41806 | 94 cd ..\src |
74841
b28d17e7d21a
(all-other-dirs-nmake, recompile-nmake): Don't use $(XMFLAGS).
Eli Zaretskii <eliz@gnu.org>
parents:
74817
diff
changeset
|
95 $(MAKE) $(MFLAGS) all |
41806 | 96 cd ..\lisp |
74841
b28d17e7d21a
(all-other-dirs-nmake, recompile-nmake): Don't use $(XMFLAGS).
Eli Zaretskii <eliz@gnu.org>
parents:
74817
diff
changeset
|
97 $(MAKE) $(MFLAGS) all |
41806 | 98 cd ..\leim |
74841
b28d17e7d21a
(all-other-dirs-nmake, recompile-nmake): Don't use $(XMFLAGS).
Eli Zaretskii <eliz@gnu.org>
parents:
74817
diff
changeset
|
99 $(MAKE) $(MFLAGS) all |
41806 | 100 cd ..\nt |
101 | |
74780
7ae36b2cbdc6
($(TRES)): Depend on $(BLD). Use $< instead of $(ALL_DEPS).
Eli Zaretskii <eliz@gnu.org>
parents:
69447
diff
changeset
|
102 all-other-dirs-gmake: addsection |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
103 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src all |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
104 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src all |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
105 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp all |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
106 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim all |
41806 | 107 |
108 recompile: recompile-$(MAKETYPE) | |
109 | |
110 recompile-nmake: | |
111 cd ..\lisp | |
74841
b28d17e7d21a
(all-other-dirs-nmake, recompile-nmake): Don't use $(XMFLAGS).
Eli Zaretskii <eliz@gnu.org>
parents:
74817
diff
changeset
|
112 $(MAKE) $(MFLAGS) recompile |
41806 | 113 cd ..\nt |
114 | |
115 recompile-gmake: | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
116 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp recompile |
41806 | 117 |
118 #### Bootstrapping. | |
119 | |
120 ### This is meant for Emacs maintainers only. It first cleans the | |
121 ### lisp subdirectory, removing all compiled Lisp files. Then a | |
122 ### special emacs executable is built from Lisp sources, which is then | |
123 ### used to compile Lisp files. The last step is a "normal" make. | |
124 | |
45811
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
125 maybe-bootstrap: maybe-bootstrap-$(SHELLTYPE) |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
126 |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
127 # 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
|
128 doit: |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
129 |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
130 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
|
131 @echo . |
45811
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
132 @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
|
133 @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
|
134 @echo . |
45811
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
135 @if not EXIST ..\lisp\abbrev.elc exit -1 |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
136 |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
137 maybe-bootstrap-SH: doit |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
138 @if [ ! -f ../lisp/abbrev.elc ] ; then \ |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
139 echo; \ |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
140 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
|
141 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
|
142 echo; \ |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
143 exit -1; \ |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
144 fi |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
145 |
78172
ffb5cc25cfc4
(bootstrap, bootstrap-nmake, bootstrap-gmake): Depend on cmdproxy.
Eli Zaretskii <eliz@gnu.org>
parents:
75348
diff
changeset
|
146 # Bootstrap depends on cmdproxy because some Lisp functions |
ffb5cc25cfc4
(bootstrap, bootstrap-nmake, bootstrap-gmake): Depend on cmdproxy.
Eli Zaretskii <eliz@gnu.org>
parents:
75348
diff
changeset
|
147 # loaded during bootstrap may need to run shell commands. |
ffb5cc25cfc4
(bootstrap, bootstrap-nmake, bootstrap-gmake): Depend on cmdproxy.
Eli Zaretskii <eliz@gnu.org>
parents:
75348
diff
changeset
|
148 bootstrap: addsection cmdproxy bootstrap-$(MAKETYPE) |
74817
72b5e33cca58
(bootstrap): Make `all' explicitly in a recursive Make.
Eli Zaretskii <eliz@gnu.org>
parents:
74816
diff
changeset
|
149 $(MAKE) $(MFLAGS) $(XMFLAGS) all |
41806 | 150 |
78172
ffb5cc25cfc4
(bootstrap, bootstrap-nmake, bootstrap-gmake): Depend on cmdproxy.
Eli Zaretskii <eliz@gnu.org>
parents:
75348
diff
changeset
|
151 bootstrap-nmake: addsection cmdproxy |
41806 | 152 cd ..\lisp |
153 $(MAKE) $(MFLAGS) bootstrap-clean | |
154 cd ..\src | |
155 $(MAKE) $(MFLAGS) clean | |
156 cd ..\lib-src | |
44495
5040cc502801
(bootstrap-nmake, bootstrap-gmake): Make DOC after compiling .el files.
Juanma Barranquero <lekktu@gmail.com>
parents:
42026
diff
changeset
|
157 $(MAKE) $(MFLAGS) clean |
41806 | 158 cd ..\src |
159 $(MAKE) $(MFLAGS) bootstrap | |
160 $(MAKE) $(MFLAGS) bootstrap-clean | |
78556
06a920d59d43
(bootstrap-nmake): Change directories once more.
Jason Rumney <jasonr@gnu.org>
parents:
78246
diff
changeset
|
161 cd ..\nt |
78172
ffb5cc25cfc4
(bootstrap, bootstrap-nmake, bootstrap-gmake): Depend on cmdproxy.
Eli Zaretskii <eliz@gnu.org>
parents:
75348
diff
changeset
|
162 $(CP) $(BLD)/cmdproxy.exe ../bin |
41806 | 163 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
|
164 $(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
|
165 cd ..\lib-src |
5040cc502801
(bootstrap-nmake, bootstrap-gmake): Make DOC after compiling .el files.
Juanma Barranquero <lekktu@gmail.com>
parents:
42026
diff
changeset
|
166 $(MAKE) $(MFLAGS) DOC |
41806 | 167 cd ..\nt |
168 | |
78172
ffb5cc25cfc4
(bootstrap, bootstrap-nmake, bootstrap-gmake): Depend on cmdproxy.
Eli Zaretskii <eliz@gnu.org>
parents:
75348
diff
changeset
|
169 bootstrap-gmake: addsection cmdproxy |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
170 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap-clean |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
171 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src clean |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
172 $(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
|
173 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
174 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap-clean |
78172
ffb5cc25cfc4
(bootstrap, bootstrap-nmake, bootstrap-gmake): Depend on cmdproxy.
Eli Zaretskii <eliz@gnu.org>
parents:
75348
diff
changeset
|
175 $(CP) $(BLD)/cmdproxy.exe ../bin |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
176 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
177 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src DOC |
41806 | 178 |
179 bootstrap-clean: bootstrap-clean-$(MAKETYPE) | |
180 | |
181 bootstrap-clean-nmake: | |
182 cd ..\src | |
183 $(MAKE) $(MFLAGS) bootstrap-clean | |
184 cd ..\lisp | |
185 $(MAKE) $(MFLAGS) bootstrap-clean | |
186 | |
187 bootstrap-clean-gmake: | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
188 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap-clean |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
189 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap-clean |
41806 | 190 |
191 $(INSTALL_DIR): | |
192 - mkdir "$(INSTALL_DIR)" | |
193 | |
194 $(INSTALL_DIR)/bin: $(INSTALL_DIR) | |
195 - mkdir "$(INSTALL_DIR)/bin" | |
196 | |
197 # | |
198 # Build and install emacs in INSTALL_DIR | |
199 # | |
200 install: all $(INSTALL_DIR)/bin install-other-dirs-$(MAKETYPE) | |
201 - $(CP) $(BLD)/addpm.exe $(INSTALL_DIR)/bin | |
202 - $(CP) $(BLD)/ddeclient.exe $(INSTALL_DIR)/bin | |
203 - $(CP) $(BLD)/cmdproxy.exe $(INSTALL_DIR)/bin | |
204 - $(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
|
205 - "$(INSTALL_DIR)/bin/addpm" -q |
41806 | 206 - $(DEL) ../same-dir.tst |
207 - $(DEL) $(INSTALL_DIR)/same-dir.tst | |
208 echo SameDirTest > "$(INSTALL_DIR)/same-dir.tst" | |
209 - mkdir "$(INSTALL_DIR)/etc" | |
210 - mkdir "$(INSTALL_DIR)/info" | |
211 - mkdir "$(INSTALL_DIR)/lock" | |
212 - mkdir "$(INSTALL_DIR)/data" | |
213 - mkdir "$(INSTALL_DIR)/site-lisp" | |
214 - mkdir "$(INSTALL_DIR)/etc/icons" | |
215 $(IFNOTSAMEDIR) $(CP) ../site-lisp/subdirs.el $(INSTALL_DIR)/site-lisp $(ENDIF) | |
216 $(IFNOTSAMEDIR) $(CP_DIR) ../etc $(INSTALL_DIR) $(ENDIF) | |
217 - $(CP_DIR) icons $(INSTALL_DIR)/etc | |
218 $(IFNOTSAMEDIR) $(CP_DIR) ../info $(INSTALL_DIR) $(ENDIF) | |
79133
58ec22dbe75f
(install): Install COPYING in top-level and bin dirs.
Jason Rumney <jasonr@gnu.org>
parents:
78556
diff
changeset
|
219 $(IFNOTSAMEDIR) $(CP) ../COPYING $(INSTALL_DIR) $(ENDIF) |
58ec22dbe75f
(install): Install COPYING in top-level and bin dirs.
Jason Rumney <jasonr@gnu.org>
parents:
78556
diff
changeset
|
220 - $(CP) ../COPYING $(INSTALL_DIR)/bin |
41806 | 221 - $(DEL) ../same-dir.tst |
222 - $(DEL) $(INSTALL_DIR)/same-dir.tst | |
223 | |
224 install-other-dirs-nmake: | |
225 cd ..\lib-src | |
226 $(MAKE) $(MFLAGS) install | |
227 cd ..\src | |
228 $(MAKE) $(MFLAGS) install | |
229 cd ..\lisp | |
230 $(MAKE) $(MFLAGS) install | |
231 cd ..\leim | |
232 $(MAKE) $(MFLAGS) install | |
233 cd ..\nt | |
234 | |
235 install-other-dirs-gmake: | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
236 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src install |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
237 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src install |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
238 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp install |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
239 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim install |
41806 | 240 |
52424
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
241 force-info: |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
242 # Note that man/makefile knows how to |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
243 # put the info files in $(infodir), |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
244 # 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
|
245 info: force-info info-$(MAKETYPE) |
52424
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
246 |
55337
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
247 info-nmake: |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
248 cd ..\man |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
249 $(MAKE) $(MFLAGS) info |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
250 cd ..\lispref |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
251 $(MAKE) $(MFLAGS) info |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
252 cd ..\lispintro |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
253 $(MAKE) $(MFLAGS) info |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
254 |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
255 info-gmake: |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
256 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../man info |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
257 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lispref info |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
258 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lispintro info |
41806 | 259 # |
260 # Maintenance | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45811
diff
changeset
|
261 # |
41806 | 262 clean: clean-other-dirs-$(MAKETYPE) |
78172
ffb5cc25cfc4
(bootstrap, bootstrap-nmake, bootstrap-gmake): Depend on cmdproxy.
Eli Zaretskii <eliz@gnu.org>
parents:
75348
diff
changeset
|
263 - $(DEL) $(COMPILER_TEMP_FILES) |
41806 | 264 - $(DEL_TREE) $(OBJDIR) |
74816 | 265 - $(DEL) stamp_BLD |
41806 | 266 - $(DEL) ../etc/DOC ../etc/DOC-X |
267 | |
268 clean-other-dirs-nmake: | |
269 cd ..\lib-src | |
270 $(MAKE) $(MFLAGS) clean | |
271 cd ..\src | |
272 $(MAKE) $(MFLAGS) clean | |
273 cd ..\lisp | |
274 $(MAKE) $(MFLAGS) clean | |
52424
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
275 cd ..\lispintro |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
276 $(MAKE) $(MFLAGS) clean |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
277 cd ..\lispref |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
278 $(MAKE) $(MFLAGS) clean |
41806 | 279 cd ..\leim |
280 $(MAKE) $(MFLAGS) clean | |
52424
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
281 cd ..\man |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
282 $(MAKE) $(MFLAGS) clean |
41806 | 283 cd ..\nt |
284 | |
285 clean-other-dirs-gmake: | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
286 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src clean |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
287 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src clean |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
288 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp clean |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
289 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim clean |
41806 | 290 |
291 cleanall-other-dirs-nmake: | |
292 cd ..\lib-src | |
293 $(MAKE) $(MFLAGS) cleanall | |
294 cd ..\src | |
295 $(MAKE) $(MFLAGS) cleanall | |
296 cd ..\nt | |
297 | |
298 cleanall-other-dirs-gmake: | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
299 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src cleanall |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
300 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src cleanall |
41806 | 301 |
78172
ffb5cc25cfc4
(bootstrap, bootstrap-nmake, bootstrap-gmake): Depend on cmdproxy.
Eli Zaretskii <eliz@gnu.org>
parents:
75348
diff
changeset
|
302 # We used to delete *~ here, but that might inadvertently remove |
ffb5cc25cfc4
(bootstrap, bootstrap-nmake, bootstrap-gmake): Depend on cmdproxy.
Eli Zaretskii <eliz@gnu.org>
parents:
75348
diff
changeset
|
303 # precious files if it happens to match their short 8+3 aliases. |
41806 | 304 cleanall: clean cleanall-other-dirs-$(MAKETYPE) |
305 - $(DEL_TREE) obj | |
306 - $(DEL_TREE) obj-spd | |
307 - $(DEL_TREE) oo | |
308 - $(DEL_TREE) oo-spd | |
309 | |
310 realclean: cleanall | |
311 - $(DEL_TREE) ../bin |