[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r107676: Fix parallel "make install"
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r107676: Fix parallel "make install" on MS-Windows. |
Date: |
Sun, 25 Mar 2012 20:17:46 +0200 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 107676
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Sun 2012-03-25 20:17:46 +0200
message:
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.
modified:
leim/ChangeLog
leim/makefile.w32-in
lisp/ChangeLog
lisp/makefile.w32-in
nt/ChangeLog
nt/gmake.defs
nt/makefile.w32-in
nt/nmake.defs
=== modified file 'leim/ChangeLog'
--- a/leim/ChangeLog 2012-03-21 07:41:52 +0000
+++ b/leim/ChangeLog 2012-03-25 18:17:46 +0000
@@ -1,3 +1,9 @@
+2012-03-25 Eli Zaretskii <address@hidden>
+
+ * makefile.w32-in (install): Use $(DIRNAME)_same-dir.tst instead
+ of same-dir.tst, to avoid stepping on other (parallel) Make job's
+ toes.
+
2012-03-21 Kenichi Handa <address@hidden>
* quail/indian.el ("devanagari-itrans"): Add a few more useful
=== modified file 'leim/makefile.w32-in'
--- a/leim/makefile.w32-in 2012-01-19 07:21:25 +0000
+++ b/leim/makefile.w32-in 2012-03-25 18:17:46 +0000
@@ -201,13 +201,13 @@
install: all
- mkdir "$(INSTALLDIR)"
- - $(DEL) same-dir.tst
- - $(DEL) $(INSTALL_DIR)/same-dir.tst
- echo SameDirTest > $(INSTALL_DIR)/same-dir.tst
+ - $(DEL) $(DIRNAME)_same-dir.tst
+ - $(DEL) $(INSTALL_DIR)/$(DIRNAME)_same-dir.tst
+ echo SameDirTest > $(INSTALL_DIR)/$(DIRNAME)_same-dir.tst
$(IFNOTSAMEDIR) $(CP) leim-list.el $(INSTALLDIR) $(ENDIF)
$(IFNOTSAMEDIR) $(CP_DIR) quail $(INSTALLDIR) $(ENDIF)
$(IFNOTSAMEDIR) $(CP_DIR) ja-dic $(INSTALLDIR) $(ENDIF)
- - $(DEL) $(INSTALL_DIR)/same-dir.tst
+ - $(DEL) $(INSTALL_DIR)/$(DIRNAME)_same-dir.tst
clean mostlyclean:
- $(FOREACH) $(TIT) $(FORDO) $(DEL) $(FORVAR) $(ENDFOR)
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2012-03-25 14:05:51 +0000
+++ b/lisp/ChangeLog 2012-03-25 18:17:46 +0000
@@ -1,3 +1,9 @@
+2012-03-25 Eli Zaretskii <address@hidden>
+
+ * makefile.w32-in (install): Use $(DIRNAME)_same-dir.tst instead
+ of same-dir.tst, to avoid stepping on other (parallel) Make job's
+ toes.
+
2012-03-25 Chong Yidong <address@hidden>
* custom.el (load-theme): Even if NO-ENABLE arg is t, reenable the
=== modified file 'lisp/makefile.w32-in'
--- a/lisp/makefile.w32-in 2012-01-19 07:21:25 +0000
+++ b/lisp/makefile.w32-in 2012-03-25 18:17:46 +0000
@@ -510,9 +510,9 @@
#
install:
- mkdir "$(INSTALL_DIR)/lisp"
- - $(DEL) ../same-dir.tst
- - $(DEL) "$(INSTALL_DIR)/same-dir.tst"
- echo SameDirTest > "$(INSTALL_DIR)/same-dir.tst"
+ - $(DEL) ../$(DIRNAME)_same-dir.tst
+ - $(DEL) "$(INSTALL_DIR)/$(DIRNAME)_same-dir.tst"
+ echo SameDirTest > "$(INSTALL_DIR)/$(DIRNAME)_same-dir.tst"
#ifdef COPY_LISP_SOURCE
$(IFNOTSAMEDIR) $(MAKE) $(MFLAGS) install-lisp-$(SHELLTYPE)
$(ENDIF)
#else
@@ -528,8 +528,8 @@
# $(IFNOTSAMEDIR) $(CP) international/latin-*.el
"$(INSTALL_DIR)/lisp/international" $(ENDIF)
# $(IFNOTSAMEDIR) $(CP) international/mule-conf.el
"$(INSTALL_DIR)/lisp/international" $(ENDIF)
#endif
- - $(DEL) ../same-dir.tst
- - $(DEL) "$(INSTALL_DIR)/same-dir.tst"
+ - $(DEL) ../$(DIRNAME)_same-dir.tst
+ - $(DEL) "$(INSTALL_DIR)/$(DIRNAME)_same-dir.tst"
# Need to copy *.el files first, to avoid "source file is newer" annoyance
# since cp does not preserve time stamps
=== modified file 'nt/ChangeLog'
--- a/nt/ChangeLog 2012-02-24 10:13:20 +0000
+++ b/nt/ChangeLog 2012-03-25 18:17:46 +0000
@@ -1,3 +1,23 @@
+2012-03-25 Eli Zaretskii <address@hidden>
+
+ * 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.
+
+ * nmake.defs (DIRNAME): New variable.
+ (IFNOTSAMEDIR): Use $(DIRNAME)_same-dir.tst instead of
+ same-dir.tst.
+
+ * gmake.defs (DIRNAME): New variable.
+ (IFNOTSAMEDIR): Use $(DIRNAME)_same-dir.tst instead of
+ same-dir.tst, to avoid conflicts between several (parallel) Make
+ jobs.
+
2012-02-24 Eli Zaretskii <address@hidden>
Prevent endless re-spawning of cmdproxy.exe when some of its
=== modified file 'nt/gmake.defs'
--- a/nt/gmake.defs 2012-02-05 20:40:36 +0000
+++ b/nt/gmake.defs 2012-03-25 18:17:46 +0000
@@ -245,9 +245,11 @@
DEL = rm
DEL_TREE = rm -r
+DIRNAME = $(notdir $(CURDIR))
+
ifdef USING_SH
-IFNOTSAMEDIR = if [ ! -s ../same-dir.tst ] ; then
+IFNOTSAMEDIR = if [ ! -s ../$(DIRNAME)_same-dir.tst ] ; then
FOREACH = for f in
FORVAR = $${f}
FORDO = ; do
@@ -262,7 +264,7 @@
else
-IFNOTSAMEDIR = if not exist ../same-dir.tst
+IFNOTSAMEDIR = if not exist ../$(DIRNAME)_same-dir.tst
FOREACH = for %%f in (
FORVAR = %%f
FORDO = ) do
=== modified file 'nt/makefile.w32-in'
--- a/nt/makefile.w32-in 2012-02-27 03:20:00 +0000
+++ b/nt/makefile.w32-in 2012-03-25 18:17:46 +0000
@@ -214,14 +214,13 @@
install: install-bin install-shortcuts
install-bin: all $(INSTALL_DIR)/bin install-other-dirs-$(MAKETYPE)
- - $(CP) $(BLD)/addpm.exe $(INSTALL_DIR)/bin
- $(CP) $(BLD)/ddeclient.exe $(INSTALL_DIR)/bin
- $(CP) $(BLD)/cmdproxy.exe $(INSTALL_DIR)/bin
- $(CP) $(BLD)/runemacs.exe $(INSTALL_DIR)/bin
- $(CP) README.W32 $(INSTALL_DIR)
- - $(DEL) ../same-dir.tst
- - $(DEL) $(INSTALL_DIR)/same-dir.tst
- echo SameDirTest > "$(INSTALL_DIR)/same-dir.tst"
+ - $(DEL) ../$(DIRNAME)_same-dir.tst
+ - $(DEL) $(INSTALL_DIR)/$(DIRNAME)_same-dir.tst
+ echo SameDirTest > "$(INSTALL_DIR)/$(DIRNAME)_same-dir.tst"
- mkdir "$(INSTALL_DIR)/etc"
- mkdir "$(INSTALL_DIR)/info"
- mkdir "$(INSTALL_DIR)/lock"
@@ -234,10 +233,10 @@
$(IFNOTSAMEDIR) $(CP_DIR) ../info $(INSTALL_DIR) $(ENDIF)
$(IFNOTSAMEDIR) $(CP) ../COPYING $(INSTALL_DIR) $(ENDIF)
- $(CP) ../COPYING $(INSTALL_DIR)/bin
- - $(DEL) ../same-dir.tst
- - $(DEL) $(INSTALL_DIR)/same-dir.tst
+ - $(DEL) ../$(DIRNAME)_same-dir.tst
+ - $(DEL) $(INSTALL_DIR)/$(DIRNAME)_same-dir.tst
-install-other-dirs-nmake:
+install-other-dirs-nmake: all
cd ..\lib-src
$(MAKE) $(MFLAGS) install
cd ..\src
@@ -248,21 +247,22 @@
$(MAKE) $(MFLAGS) install
cd ..\nt
-install-other-dirs-gmake:
+install-other-dirs-gmake: all
$(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src install
$(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src install
$(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp install
$(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim install
-install-shortcuts:
+install-shortcuts: $(INSTALL_DIR)/bin
+ - $(CP) $(BLD)/addpm.exe $(INSTALL_DIR)/bin
"$(INSTALL_DIR)/bin/addpm" -q
maybe-copy-distfiles: maybe-copy-distfiles-$(SHELLTYPE)
-maybe-copy-distfiles-CMD: doit
+maybe-copy-distfiles-CMD: create-tmp-dist-dir doit
@if not $(ARGQUOTE)$(DIST_FILES)$(ARGQUOTE)=="" $(CP_DIR) $(DIST_FILES)
$(TMP_DIST_DIR)/bin
-maybe-copy-distfiles-SH: doit
+maybe-copy-distfiles-SH: create-tmp-dist-dir doit
@if [ ! $(ARGQUOTE)$(DIST_FILES)$(ARGQUOTE)=="" ] ; then \
$(CP_DIR) $(DIST_FILES) $(TMP_DIST_DIR)/bin ; \
fi
@@ -272,7 +272,7 @@
# Also create bin directory for dist files.
mkdir "$(TMP_DIST_DIR)/bin"
-dist: install-bin create-tmp-dist-dir maybe-copy-distfiles
+dist: install-bin maybe-copy-distfiles
$(CP) "$(INSTALL_DIR)/BUGS" $(TMP_DIST_DIR)
$(CP) "$(INSTALL_DIR)/COPYING" $(TMP_DIST_DIR)
$(CP) "$(INSTALL_DIR)/README" $(TMP_DIST_DIR)
=== modified file 'nt/nmake.defs'
--- a/nt/nmake.defs 2012-02-05 20:40:36 +0000
+++ b/nt/nmake.defs 2012-03-25 18:17:46 +0000
@@ -27,6 +27,7 @@
CURDIR = $(MAKEDIR:\=/)
THISDIR = $(MAKEDIR)
+DIRNAME =
ALL_DEPS = $**
@@ -181,7 +182,7 @@
CP = cp -f
CP_DIR = cp -rf
-IFNOTSAMEDIR = if not exist ..\same-dir.tst
+IFNOTSAMEDIR = if not exist ..\$(DIRNAME)_same-dir.tst
ENDIF =
FOREACH = for %%f in (
FORVAR = %%f
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r107676: Fix parallel "make install" on MS-Windows.,
Eli Zaretskii <=