aboutsummaryrefslogtreecommitdiffstats
path: root/nt
diff options
context:
space:
mode:
authorEli Zaretskii2012-03-25 20:17:46 +0200
committerEli Zaretskii2012-03-25 20:17:46 +0200
commite5a69fd00a424f59f2ef7be8049b47340ddaa1ca (patch)
tree23541145e69bc2288d2a931f4b4c9d66c35db67d /nt
parentbf43fa51a6aabd68659c90eeb42a1b214820ea4a (diff)
downloademacs-e5a69fd00a424f59f2ef7be8049b47340ddaa1ca.tar.gz
emacs-e5a69fd00a424f59f2ef7be8049b47340ddaa1ca.zip
Fix parallel "make install" on MS-Windows.
nt/makefile.w32-in (install-bin): Don't copy addpm.exe here. Use $(DIRNAME)_same-dir.tst instead of same-dir.tst, to avoid stepping on other (parallel) Make job's toes. (install-other-dirs-nmake, install-other-dirs-gmake): Depend on `all'. (install-shortcuts): Depend on $(INSTALL_DIR)/bin. Copy addpm.exe here. (maybe-copy-distfiles-CMD, maybe-copy-distfiles-SH, dist): Depend on create-tmp-dist-dir. nt/nmake.defs (DIRNAME): New variable. (IFNOTSAMEDIR): Use $(DIRNAME)_same-dir.tst instead of same-dir.tst. nt/gmake.defs (DIRNAME): New variable. (IFNOTSAMEDIR): Use $(DIRNAME)_same-dir.tst instead of same-dir.tst, to avoid conflicts between several (parallel) Make jobs. lisp/makefile.w32-in (install): Use $(DIRNAME)_same-dir.tst instead of same-dir.tst, to avoid stepping on other (parallel) Make job's toes. leim/makefile.w32-in (install): Use $(DIRNAME)_same-dir.tst instead of same-dir.tst, to avoid stepping on other (parallel) Make job's toes.
Diffstat (limited to 'nt')
-rw-r--r--nt/ChangeLog20
-rw-r--r--nt/gmake.defs6
-rw-r--r--nt/makefile.w32-in24
-rw-r--r--nt/nmake.defs3
4 files changed, 38 insertions, 15 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog
index e5358841274..5c494578eeb 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,23 @@
12012-03-25 Eli Zaretskii <eliz@gnu.org>
2
3 * makefile.w32-in (install-bin): Don't copy addpm.exe here. Use
4 $(DIRNAME)_same-dir.tst instead of same-dir.tst, to avoid stepping
5 on other (parallel) Make job's toes.
6 (install-other-dirs-nmake, install-other-dirs-gmake): Depend on `all'.
7 (install-shortcuts): Depend on $(INSTALL_DIR)/bin. Copy addpm.exe
8 here.
9 (maybe-copy-distfiles-CMD, maybe-copy-distfiles-SH, dist): Depend
10 on create-tmp-dist-dir.
11
12 * nmake.defs (DIRNAME): New variable.
13 (IFNOTSAMEDIR): Use $(DIRNAME)_same-dir.tst instead of
14 same-dir.tst.
15
16 * gmake.defs (DIRNAME): New variable.
17 (IFNOTSAMEDIR): Use $(DIRNAME)_same-dir.tst instead of
18 same-dir.tst, to avoid conflicts between several (parallel) Make
19 jobs.
20
12012-02-24 Eli Zaretskii <eliz@gnu.org> 212012-02-24 Eli Zaretskii <eliz@gnu.org>
2 22
3 Prevent endless re-spawning of cmdproxy.exe when some of its 23 Prevent endless re-spawning of cmdproxy.exe when some of its
diff --git a/nt/gmake.defs b/nt/gmake.defs
index 6839b28b975..a669ffd27be 100644
--- a/nt/gmake.defs
+++ b/nt/gmake.defs
@@ -245,9 +245,11 @@ CP_DIR = cp -rf
245DEL = rm 245DEL = rm
246DEL_TREE = rm -r 246DEL_TREE = rm -r
247 247
248DIRNAME = $(notdir $(CURDIR))
249
248ifdef USING_SH 250ifdef USING_SH
249 251
250IFNOTSAMEDIR = if [ ! -s ../same-dir.tst ] ; then 252IFNOTSAMEDIR = if [ ! -s ../$(DIRNAME)_same-dir.tst ] ; then
251FOREACH = for f in 253FOREACH = for f in
252FORVAR = $${f} 254FORVAR = $${f}
253FORDO = ; do 255FORDO = ; do
@@ -262,7 +264,7 @@ endif
262 264
263else 265else
264 266
265IFNOTSAMEDIR = if not exist ../same-dir.tst 267IFNOTSAMEDIR = if not exist ../$(DIRNAME)_same-dir.tst
266FOREACH = for %%f in ( 268FOREACH = for %%f in (
267FORVAR = %%f 269FORVAR = %%f
268FORDO = ) do 270FORDO = ) do
diff --git a/nt/makefile.w32-in b/nt/makefile.w32-in
index 10fe6db1ccf..8075f6cb3ef 100644
--- a/nt/makefile.w32-in
+++ b/nt/makefile.w32-in
@@ -214,14 +214,13 @@ $(INSTALL_DIR)/bin: $(INSTALL_DIR)
214install: install-bin install-shortcuts 214install: install-bin install-shortcuts
215 215
216install-bin: all $(INSTALL_DIR)/bin install-other-dirs-$(MAKETYPE) 216install-bin: all $(INSTALL_DIR)/bin install-other-dirs-$(MAKETYPE)
217 - $(CP) $(BLD)/addpm.exe $(INSTALL_DIR)/bin
218 - $(CP) $(BLD)/ddeclient.exe $(INSTALL_DIR)/bin 217 - $(CP) $(BLD)/ddeclient.exe $(INSTALL_DIR)/bin
219 - $(CP) $(BLD)/cmdproxy.exe $(INSTALL_DIR)/bin 218 - $(CP) $(BLD)/cmdproxy.exe $(INSTALL_DIR)/bin
220 - $(CP) $(BLD)/runemacs.exe $(INSTALL_DIR)/bin 219 - $(CP) $(BLD)/runemacs.exe $(INSTALL_DIR)/bin
221 - $(CP) README.W32 $(INSTALL_DIR) 220 - $(CP) README.W32 $(INSTALL_DIR)
222 - $(DEL) ../same-dir.tst 221 - $(DEL) ../$(DIRNAME)_same-dir.tst
223 - $(DEL) $(INSTALL_DIR)/same-dir.tst 222 - $(DEL) $(INSTALL_DIR)/$(DIRNAME)_same-dir.tst
224 echo SameDirTest > "$(INSTALL_DIR)/same-dir.tst" 223 echo SameDirTest > "$(INSTALL_DIR)/$(DIRNAME)_same-dir.tst"
225 - mkdir "$(INSTALL_DIR)/etc" 224 - mkdir "$(INSTALL_DIR)/etc"
226 - mkdir "$(INSTALL_DIR)/info" 225 - mkdir "$(INSTALL_DIR)/info"
227 - mkdir "$(INSTALL_DIR)/lock" 226 - mkdir "$(INSTALL_DIR)/lock"
@@ -234,10 +233,10 @@ install-bin: all $(INSTALL_DIR)/bin install-other-dirs-$(MAKETYPE)
234 $(IFNOTSAMEDIR) $(CP_DIR) ../info $(INSTALL_DIR) $(ENDIF) 233 $(IFNOTSAMEDIR) $(CP_DIR) ../info $(INSTALL_DIR) $(ENDIF)
235 $(IFNOTSAMEDIR) $(CP) ../COPYING $(INSTALL_DIR) $(ENDIF) 234 $(IFNOTSAMEDIR) $(CP) ../COPYING $(INSTALL_DIR) $(ENDIF)
236 - $(CP) ../COPYING $(INSTALL_DIR)/bin 235 - $(CP) ../COPYING $(INSTALL_DIR)/bin
237 - $(DEL) ../same-dir.tst 236 - $(DEL) ../$(DIRNAME)_same-dir.tst
238 - $(DEL) $(INSTALL_DIR)/same-dir.tst 237 - $(DEL) $(INSTALL_DIR)/$(DIRNAME)_same-dir.tst
239 238
240install-other-dirs-nmake: 239install-other-dirs-nmake: all
241 cd ..\lib-src 240 cd ..\lib-src
242 $(MAKE) $(MFLAGS) install 241 $(MAKE) $(MFLAGS) install
243 cd ..\src 242 cd ..\src
@@ -248,21 +247,22 @@ install-other-dirs-nmake:
248 $(MAKE) $(MFLAGS) install 247 $(MAKE) $(MFLAGS) install
249 cd ..\nt 248 cd ..\nt
250 249
251install-other-dirs-gmake: 250install-other-dirs-gmake: all
252 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src install 251 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src install
253 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src install 252 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src install
254 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp install 253 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp install
255 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim install 254 $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim install
256 255
257install-shortcuts: 256install-shortcuts: $(INSTALL_DIR)/bin
257 - $(CP) $(BLD)/addpm.exe $(INSTALL_DIR)/bin
258 "$(INSTALL_DIR)/bin/addpm" -q 258 "$(INSTALL_DIR)/bin/addpm" -q
259 259
260maybe-copy-distfiles: maybe-copy-distfiles-$(SHELLTYPE) 260maybe-copy-distfiles: maybe-copy-distfiles-$(SHELLTYPE)
261 261
262maybe-copy-distfiles-CMD: doit 262maybe-copy-distfiles-CMD: create-tmp-dist-dir doit
263 @if not $(ARGQUOTE)$(DIST_FILES)$(ARGQUOTE)=="" $(CP_DIR) $(DIST_FILES) $(TMP_DIST_DIR)/bin 263 @if not $(ARGQUOTE)$(DIST_FILES)$(ARGQUOTE)=="" $(CP_DIR) $(DIST_FILES) $(TMP_DIST_DIR)/bin
264 264
265maybe-copy-distfiles-SH: doit 265maybe-copy-distfiles-SH: create-tmp-dist-dir doit
266 @if [ ! $(ARGQUOTE)$(DIST_FILES)$(ARGQUOTE)=="" ] ; then \ 266 @if [ ! $(ARGQUOTE)$(DIST_FILES)$(ARGQUOTE)=="" ] ; then \
267 $(CP_DIR) $(DIST_FILES) $(TMP_DIST_DIR)/bin ; \ 267 $(CP_DIR) $(DIST_FILES) $(TMP_DIST_DIR)/bin ; \
268 fi 268 fi
@@ -272,7 +272,7 @@ create-tmp-dist-dir:
272# Also create bin directory for dist files. 272# Also create bin directory for dist files.
273 mkdir "$(TMP_DIST_DIR)/bin" 273 mkdir "$(TMP_DIST_DIR)/bin"
274 274
275dist: install-bin create-tmp-dist-dir maybe-copy-distfiles 275dist: install-bin maybe-copy-distfiles
276 $(CP) "$(INSTALL_DIR)/BUGS" $(TMP_DIST_DIR) 276 $(CP) "$(INSTALL_DIR)/BUGS" $(TMP_DIST_DIR)
277 $(CP) "$(INSTALL_DIR)/COPYING" $(TMP_DIST_DIR) 277 $(CP) "$(INSTALL_DIR)/COPYING" $(TMP_DIST_DIR)
278 $(CP) "$(INSTALL_DIR)/README" $(TMP_DIST_DIR) 278 $(CP) "$(INSTALL_DIR)/README" $(TMP_DIST_DIR)
diff --git a/nt/nmake.defs b/nt/nmake.defs
index 2cb3113ca9a..11079b4fb7d 100644
--- a/nt/nmake.defs
+++ b/nt/nmake.defs
@@ -27,6 +27,7 @@ MAKETYPE=nmake
27 27
28CURDIR = $(MAKEDIR:\=/) 28CURDIR = $(MAKEDIR:\=/)
29THISDIR = $(MAKEDIR) 29THISDIR = $(MAKEDIR)
30DIRNAME =
30 31
31ALL_DEPS = $** 32ALL_DEPS = $**
32 33
@@ -181,7 +182,7 @@ COMPILER_TEMP_FILES = *.pdb
181 182
182CP = cp -f 183CP = cp -f
183CP_DIR = cp -rf 184CP_DIR = cp -rf
184IFNOTSAMEDIR = if not exist ..\same-dir.tst 185IFNOTSAMEDIR = if not exist ..\$(DIRNAME)_same-dir.tst
185ENDIF = 186ENDIF =
186FOREACH = for %%f in ( 187FOREACH = for %%f in (
187FORVAR = %%f 188FORVAR = %%f