Mercurial > emacs
annotate nt/makefile.w32-in @ 78415:73900ddc75ee
(window_min_size_2): New function.
(window_min_size_1, size_window, Fdisplay_buffer)
(Fsplit_window, adjust_window_trailing_edge): Use it to avoid
windows without mode- or header-lines when window-min-height is
too small.
(size_window): Reset nodelete_p after testing it, following an
earlier note by Kim F. Storm.
(display_buffer): Do not set split_height_threshold to twice the
value of window_min_height to avoid changing the value of a
customizable variable. Rather explicitly check whether the
height of the window that shall be splitted is at least as large
as split_height_threshold.
(Fwindow_full_width_p): New defun.
(syms_of_window): Defsubr it.
(Fdisplay_buffer): Use NILP.
(Fset_window_scroll_bars): Likewise.
author | Martin Rudalics <rudalics@gmx.at> |
---|---|
date | Mon, 06 Aug 2007 06:44:31 +0000 |
parents | 075eb71f218d |
children | 06a920d59d43 f55f9811f5d7 |
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, |
75348 | 3 # 2005, 2006, 2007 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 |
41806 | 27 ALL = addpm ddeclient runemacs cmdproxy addsection preprep |
28 | |
29 .PHONY: $(ALL) | |
30 | |
31 TRES = $(BLD)/emacs.res | |
32 | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
33 XMFLAGS = |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
34 |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
35 addpm: stamp_BLD $(BLD)/addpm.exe |
41806 | 36 $(BLD)/addpm.exe: $(BLD)/addpm.$(O) |
37 $(LINK) $(LINK_OUT)$@ \ | |
38 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32) | |
39 | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
40 ddeclient: stamp_BLD $(BLD)/ddeclient.exe |
41806 | 41 $(BLD)/ddeclient.exe: $(BLD)/ddeclient.$(O) |
42 $(LINK) $(LINK_OUT)$@ \ | |
43 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32) | |
44 | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
45 cmdproxy: stamp_BLD $(BLD)/cmdproxy.exe |
41806 | 46 $(BLD)/cmdproxy.exe: $(BLD)/cmdproxy.$(O) |
47 $(LINK) $(LINK_OUT)$@ \ | |
48 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32) | |
49 | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
50 addsection: stamp_BLD $(BLD)/addsection.exe |
41806 | 51 $(BLD)/addsection.exe: $(BLD)/addsection.$(O) |
52 $(LINK) $(LINK_OUT)$@ \ | |
53 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32) | |
54 | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
55 preprep: stamp_BLD $(BLD)/preprep.exe |
41806 | 56 $(BLD)/preprep.exe: $(BLD)/preprep.$(O) |
57 $(LINK) $(LINK_OUT)$@ \ | |
58 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) | |
59 | |
60 # | |
61 # The resource file. NT 3.10 requires the use of cvtres; even though | |
62 # it is not necessary on later versions, it is still ok to use it. | |
63 # | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
64 $(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
|
65 $(RC) $(RC_OUT)$(BLD)/emacs.res emacs.rc |
41806 | 66 |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
67 runemacs: stamp_BLD $(BLD)/runemacs.exe |
41806 | 68 $(BLD)/runemacs.exe: $(BLD)/runemacs.$(O) $(TRES) |
69 $(LINK) $(LINK_OUT)$@ $(SUBSYSTEM_WINDOWS) \ | |
70 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32) | |
71 | |
72 which-sh: | |
73 @echo Using $(THE_SHELL) as shell. | |
74 | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
75 # 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
|
76 # before the compilation begins, even if Make runs several commands |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
77 # in parallel under "make -j". |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
78 # |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
79 $(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
|
80 |
41806 | 81 # |
82 # Build emacs | |
83 # | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
84 all: which-sh stamp_BLD $(ALL) maybe-bootstrap all-other-dirs-$(MAKETYPE) |
41806 | 85 |
74780
7ae36b2cbdc6
($(TRES)): Depend on $(BLD). Use $< instead of $(ALL_DEPS).
Eli Zaretskii <eliz@gnu.org>
parents:
69447
diff
changeset
|
86 all-other-dirs-nmake: addsection |
41806 | 87 cd ..\lib-src |
74841
b28d17e7d21a
(all-other-dirs-nmake, recompile-nmake): Don't use $(XMFLAGS).
Eli Zaretskii <eliz@gnu.org>
parents:
74817
diff
changeset
|
88 $(MAKE) $(MFLAGS) all |
41806 | 89 cd ..\src |
74841
b28d17e7d21a
(all-other-dirs-nmake, recompile-nmake): Don't use $(XMFLAGS).
Eli Zaretskii <eliz@gnu.org>
parents:
74817
diff
changeset
|
90 $(MAKE) $(MFLAGS) all |
41806 | 91 cd ..\lisp |
74841
b28d17e7d21a
(all-other-dirs-nmake, recompile-nmake): Don't use $(XMFLAGS).
Eli Zaretskii <eliz@gnu.org>
parents:
74817
diff
changeset
|
92 $(MAKE) $(MFLAGS) all |
41806 | 93 cd ..\leim |
74841
b28d17e7d21a
(all-other-dirs-nmake, recompile-nmake): Don't use $(XMFLAGS).
Eli Zaretskii <eliz@gnu.org>
parents:
74817
diff
changeset
|
94 $(MAKE) $(MFLAGS) all |
41806 | 95 cd ..\nt |
96 | |
74780
7ae36b2cbdc6
($(TRES)): Depend on $(BLD). Use $< instead of $(ALL_DEPS).
Eli Zaretskii <eliz@gnu.org>
parents:
69447
diff
changeset
|
97 all-other-dirs-gmake: addsection |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
98 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src all |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
99 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src all |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
100 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp all |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
101 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim all |
41806 | 102 |
103 recompile: recompile-$(MAKETYPE) | |
104 | |
105 recompile-nmake: | |
106 cd ..\lisp | |
74841
b28d17e7d21a
(all-other-dirs-nmake, recompile-nmake): Don't use $(XMFLAGS).
Eli Zaretskii <eliz@gnu.org>
parents:
74817
diff
changeset
|
107 $(MAKE) $(MFLAGS) recompile |
41806 | 108 cd ..\nt |
109 | |
110 recompile-gmake: | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
111 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp recompile |
41806 | 112 |
113 #### Bootstrapping. | |
114 | |
115 ### This is meant for Emacs maintainers only. It first cleans the | |
116 ### lisp subdirectory, removing all compiled Lisp files. Then a | |
117 ### special emacs executable is built from Lisp sources, which is then | |
118 ### used to compile Lisp files. The last step is a "normal" make. | |
119 | |
45811
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
120 maybe-bootstrap: maybe-bootstrap-$(SHELLTYPE) |
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 # 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
|
123 doit: |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
124 |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
125 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
|
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 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
|
128 @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
|
129 @echo . |
45811
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
130 @if not EXIST ..\lisp\abbrev.elc exit -1 |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
131 |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
132 maybe-bootstrap-SH: doit |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
133 @if [ ! -f ../lisp/abbrev.elc ] ; then \ |
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 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
|
136 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
|
137 echo; \ |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
138 exit -1; \ |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
139 fi |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
140 |
78172
ffb5cc25cfc4
(bootstrap, bootstrap-nmake, bootstrap-gmake): Depend on cmdproxy.
Eli Zaretskii <eliz@gnu.org>
parents:
75348
diff
changeset
|
141 # 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
|
142 # 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
|
143 bootstrap: addsection cmdproxy bootstrap-$(MAKETYPE) |
74817
72b5e33cca58
(bootstrap): Make `all' explicitly in a recursive Make.
Eli Zaretskii <eliz@gnu.org>
parents:
74816
diff
changeset
|
144 $(MAKE) $(MFLAGS) $(XMFLAGS) all |
41806 | 145 |
78172
ffb5cc25cfc4
(bootstrap, bootstrap-nmake, bootstrap-gmake): Depend on cmdproxy.
Eli Zaretskii <eliz@gnu.org>
parents:
75348
diff
changeset
|
146 bootstrap-nmake: addsection cmdproxy |
41806 | 147 cd ..\lisp |
148 $(MAKE) $(MFLAGS) bootstrap-clean | |
149 cd ..\src | |
150 $(MAKE) $(MFLAGS) clean | |
151 cd ..\lib-src | |
44495
5040cc502801
(bootstrap-nmake, bootstrap-gmake): Make DOC after compiling .el files.
Juanma Barranquero <lekktu@gmail.com>
parents:
42026
diff
changeset
|
152 $(MAKE) $(MFLAGS) clean |
41806 | 153 cd ..\src |
154 $(MAKE) $(MFLAGS) bootstrap | |
155 $(MAKE) $(MFLAGS) bootstrap-clean | |
78172
ffb5cc25cfc4
(bootstrap, bootstrap-nmake, bootstrap-gmake): Depend on cmdproxy.
Eli Zaretskii <eliz@gnu.org>
parents:
75348
diff
changeset
|
156 $(CP) $(BLD)/cmdproxy.exe ../bin |
41806 | 157 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
|
158 $(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
|
159 cd ..\lib-src |
5040cc502801
(bootstrap-nmake, bootstrap-gmake): Make DOC after compiling .el files.
Juanma Barranquero <lekktu@gmail.com>
parents:
42026
diff
changeset
|
160 $(MAKE) $(MFLAGS) DOC |
41806 | 161 cd ..\nt |
162 | |
78172
ffb5cc25cfc4
(bootstrap, bootstrap-nmake, bootstrap-gmake): Depend on cmdproxy.
Eli Zaretskii <eliz@gnu.org>
parents:
75348
diff
changeset
|
163 bootstrap-gmake: addsection cmdproxy |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
164 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap-clean |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
165 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src clean |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
166 $(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
|
167 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
168 $(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
|
169 $(CP) $(BLD)/cmdproxy.exe ../bin |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
170 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
171 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src DOC |
41806 | 172 |
173 bootstrap-clean: bootstrap-clean-$(MAKETYPE) | |
174 | |
175 bootstrap-clean-nmake: | |
176 cd ..\src | |
177 $(MAKE) $(MFLAGS) bootstrap-clean | |
178 cd ..\lisp | |
179 $(MAKE) $(MFLAGS) bootstrap-clean | |
180 | |
181 bootstrap-clean-gmake: | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
182 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap-clean |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
183 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap-clean |
41806 | 184 |
185 $(INSTALL_DIR): | |
186 - mkdir "$(INSTALL_DIR)" | |
187 | |
188 $(INSTALL_DIR)/bin: $(INSTALL_DIR) | |
189 - mkdir "$(INSTALL_DIR)/bin" | |
190 | |
191 # | |
192 # Build and install emacs in INSTALL_DIR | |
193 # | |
194 install: all $(INSTALL_DIR)/bin install-other-dirs-$(MAKETYPE) | |
195 - $(CP) $(BLD)/addpm.exe $(INSTALL_DIR)/bin | |
196 - $(CP) $(BLD)/ddeclient.exe $(INSTALL_DIR)/bin | |
197 - $(CP) $(BLD)/cmdproxy.exe $(INSTALL_DIR)/bin | |
198 - $(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
|
199 - "$(INSTALL_DIR)/bin/addpm" -q |
41806 | 200 - $(DEL) ../same-dir.tst |
201 - $(DEL) $(INSTALL_DIR)/same-dir.tst | |
202 echo SameDirTest > "$(INSTALL_DIR)/same-dir.tst" | |
203 - mkdir "$(INSTALL_DIR)/etc" | |
204 - mkdir "$(INSTALL_DIR)/info" | |
205 - mkdir "$(INSTALL_DIR)/lock" | |
206 - mkdir "$(INSTALL_DIR)/data" | |
207 - mkdir "$(INSTALL_DIR)/site-lisp" | |
208 - mkdir "$(INSTALL_DIR)/etc/icons" | |
209 $(IFNOTSAMEDIR) $(CP) ../site-lisp/subdirs.el $(INSTALL_DIR)/site-lisp $(ENDIF) | |
210 $(IFNOTSAMEDIR) $(CP_DIR) ../etc $(INSTALL_DIR) $(ENDIF) | |
211 - $(CP_DIR) icons $(INSTALL_DIR)/etc | |
212 $(IFNOTSAMEDIR) $(CP_DIR) ../info $(INSTALL_DIR) $(ENDIF) | |
213 - $(DEL) ../same-dir.tst | |
214 - $(DEL) $(INSTALL_DIR)/same-dir.tst | |
215 | |
216 install-other-dirs-nmake: | |
217 cd ..\lib-src | |
218 $(MAKE) $(MFLAGS) install | |
219 cd ..\src | |
220 $(MAKE) $(MFLAGS) install | |
221 cd ..\lisp | |
222 $(MAKE) $(MFLAGS) install | |
223 cd ..\leim | |
224 $(MAKE) $(MFLAGS) install | |
225 cd ..\nt | |
226 | |
227 install-other-dirs-gmake: | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
228 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src install |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
229 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src install |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
230 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp install |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
231 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim install |
41806 | 232 |
52424
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
233 force-info: |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
234 # Note that man/makefile knows how to |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
235 # put the info files in $(infodir), |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
236 # 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
|
237 info: force-info info-$(MAKETYPE) |
52424
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
238 |
55337
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
239 info-nmake: |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
240 cd ..\man |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
241 $(MAKE) $(MFLAGS) info |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
242 cd ..\lispref |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
243 $(MAKE) $(MFLAGS) info |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
244 cd ..\lispintro |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
245 $(MAKE) $(MFLAGS) info |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
246 |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
247 info-gmake: |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
248 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../man info |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
249 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lispref info |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
250 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lispintro info |
41806 | 251 # |
252 # Maintenance | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45811
diff
changeset
|
253 # |
41806 | 254 clean: clean-other-dirs-$(MAKETYPE) |
78172
ffb5cc25cfc4
(bootstrap, bootstrap-nmake, bootstrap-gmake): Depend on cmdproxy.
Eli Zaretskii <eliz@gnu.org>
parents:
75348
diff
changeset
|
255 - $(DEL) $(COMPILER_TEMP_FILES) |
41806 | 256 - $(DEL_TREE) $(OBJDIR) |
74816 | 257 - $(DEL) stamp_BLD |
41806 | 258 - $(DEL) ../etc/DOC ../etc/DOC-X |
259 | |
260 clean-other-dirs-nmake: | |
261 cd ..\lib-src | |
262 $(MAKE) $(MFLAGS) clean | |
263 cd ..\src | |
264 $(MAKE) $(MFLAGS) clean | |
265 cd ..\lisp | |
266 $(MAKE) $(MFLAGS) clean | |
52424
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
267 cd ..\lispintro |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
268 $(MAKE) $(MFLAGS) clean |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
269 cd ..\lispref |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
270 $(MAKE) $(MFLAGS) clean |
41806 | 271 cd ..\leim |
272 $(MAKE) $(MFLAGS) clean | |
52424
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
273 cd ..\man |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
274 $(MAKE) $(MFLAGS) clean |
41806 | 275 cd ..\nt |
276 | |
277 clean-other-dirs-gmake: | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
278 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src clean |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
279 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src clean |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
280 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp clean |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
281 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim clean |
41806 | 282 |
283 cleanall-other-dirs-nmake: | |
284 cd ..\lib-src | |
285 $(MAKE) $(MFLAGS) cleanall | |
286 cd ..\src | |
287 $(MAKE) $(MFLAGS) cleanall | |
288 cd ..\nt | |
289 | |
290 cleanall-other-dirs-gmake: | |
74800
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
291 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src cleanall |
89ced28cdb19
(addpm, ddeclient, cmdproxy, addsection)
Eli Zaretskii <eliz@gnu.org>
parents:
74780
diff
changeset
|
292 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src cleanall |
41806 | 293 |
78172
ffb5cc25cfc4
(bootstrap, bootstrap-nmake, bootstrap-gmake): Depend on cmdproxy.
Eli Zaretskii <eliz@gnu.org>
parents:
75348
diff
changeset
|
294 # 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
|
295 # precious files if it happens to match their short 8+3 aliases. |
41806 | 296 cleanall: clean cleanall-other-dirs-$(MAKETYPE) |
297 - $(DEL_TREE) obj | |
298 - $(DEL_TREE) obj-spd | |
299 - $(DEL_TREE) oo | |
300 - $(DEL_TREE) oo-spd | |
301 | |
302 realclean: cleanall | |
303 - $(DEL_TREE) ../bin |