diff options
| author | Eli Zaretskii | 2012-03-25 20:17:46 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2012-03-25 20:17:46 +0200 |
| commit | e5a69fd00a424f59f2ef7be8049b47340ddaa1ca (patch) | |
| tree | 23541145e69bc2288d2a931f4b4c9d66c35db67d /nt/gmake.defs | |
| parent | bf43fa51a6aabd68659c90eeb42a1b214820ea4a (diff) | |
| download | emacs-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.defs | 6 |
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 | |||
| 245 | DEL = rm | 245 | DEL = rm |
| 246 | DEL_TREE = rm -r | 246 | DEL_TREE = rm -r |
| 247 | 247 | ||
| 248 | DIRNAME = $(notdir $(CURDIR)) | ||
| 249 | |||
| 248 | ifdef USING_SH | 250 | ifdef USING_SH |
| 249 | 251 | ||
| 250 | IFNOTSAMEDIR = if [ ! -s ../same-dir.tst ] ; then | 252 | IFNOTSAMEDIR = if [ ! -s ../$(DIRNAME)_same-dir.tst ] ; then |
| 251 | FOREACH = for f in | 253 | FOREACH = for f in |
| 252 | FORVAR = $${f} | 254 | FORVAR = $${f} |
| 253 | FORDO = ; do | 255 | FORDO = ; do |
| @@ -262,7 +264,7 @@ endif | |||
| 262 | 264 | ||
| 263 | else | 265 | else |
| 264 | 266 | ||
| 265 | IFNOTSAMEDIR = if not exist ../same-dir.tst | 267 | IFNOTSAMEDIR = if not exist ../$(DIRNAME)_same-dir.tst |
| 266 | FOREACH = for %%f in ( | 268 | FOREACH = for %%f in ( |
| 267 | FORVAR = %%f | 269 | FORVAR = %%f |
| 268 | FORDO = ) do | 270 | FORDO = ) do |