aboutsummaryrefslogtreecommitdiffstats
path: root/nt/gmake.defs
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/gmake.defs
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/gmake.defs')
-rw-r--r--nt/gmake.defs6
1 files changed, 4 insertions, 2 deletions
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