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 | |
| 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')
| -rw-r--r-- | nt/ChangeLog | 20 | ||||
| -rw-r--r-- | nt/gmake.defs | 6 | ||||
| -rw-r--r-- | nt/makefile.w32-in | 24 | ||||
| -rw-r--r-- | nt/nmake.defs | 3 |
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 @@ | |||
| 1 | 2012-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 | |||
| 1 | 2012-02-24 Eli Zaretskii <eliz@gnu.org> | 21 | 2012-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 | |||
| 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 |
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) | |||
| 214 | install: install-bin install-shortcuts | 214 | install: install-bin install-shortcuts |
| 215 | 215 | ||
| 216 | install-bin: all $(INSTALL_DIR)/bin install-other-dirs-$(MAKETYPE) | 216 | install-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 | ||
| 240 | install-other-dirs-nmake: | 239 | install-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 | ||
| 251 | install-other-dirs-gmake: | 250 | install-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 | ||
| 257 | install-shortcuts: | 256 | install-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 | ||
| 260 | maybe-copy-distfiles: maybe-copy-distfiles-$(SHELLTYPE) | 260 | maybe-copy-distfiles: maybe-copy-distfiles-$(SHELLTYPE) |
| 261 | 261 | ||
| 262 | maybe-copy-distfiles-CMD: doit | 262 | maybe-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 | ||
| 265 | maybe-copy-distfiles-SH: doit | 265 | maybe-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 | ||
| 275 | dist: install-bin create-tmp-dist-dir maybe-copy-distfiles | 275 | dist: 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 | ||
| 28 | CURDIR = $(MAKEDIR:\=/) | 28 | CURDIR = $(MAKEDIR:\=/) |
| 29 | THISDIR = $(MAKEDIR) | 29 | THISDIR = $(MAKEDIR) |
| 30 | DIRNAME = | ||
| 30 | 31 | ||
| 31 | ALL_DEPS = $** | 32 | ALL_DEPS = $** |
| 32 | 33 | ||
| @@ -181,7 +182,7 @@ COMPILER_TEMP_FILES = *.pdb | |||
| 181 | 182 | ||
| 182 | CP = cp -f | 183 | CP = cp -f |
| 183 | CP_DIR = cp -rf | 184 | CP_DIR = cp -rf |
| 184 | IFNOTSAMEDIR = if not exist ..\same-dir.tst | 185 | IFNOTSAMEDIR = if not exist ..\$(DIRNAME)_same-dir.tst |
| 185 | ENDIF = | 186 | ENDIF = |
| 186 | FOREACH = for %%f in ( | 187 | FOREACH = for %%f in ( |
| 187 | FORVAR = %%f | 188 | FORVAR = %%f |