+2012-03-25 Eli Zaretskii <eliz@gnu.org>
+
+ * 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 <handa@m17n.org>
* quail/indian.el ("devanagari-itrans"): Add a few more useful
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)
+2012-03-25 Eli Zaretskii <eliz@gnu.org>
+
+ * 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 <cyd@gnu.org>
* custom.el (load-theme): Even if NO-ENABLE arg is t, reenable the
#
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
# $(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
+2012-03-25 Eli Zaretskii <eliz@gnu.org>
+
+ * 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 <eliz@gnu.org>
Prevent endless re-spawning of cmdproxy.exe when some of its
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
else
-IFNOTSAMEDIR = if not exist ../same-dir.tst
+IFNOTSAMEDIR = if not exist ../$(DIRNAME)_same-dir.tst
FOREACH = for %%f in (
FORVAR = %%f
FORDO = ) do
install: install-bin install-shortcuts\r
\r
install-bin: all $(INSTALL_DIR)/bin install-other-dirs-$(MAKETYPE)\r
- - $(CP) $(BLD)/addpm.exe $(INSTALL_DIR)/bin\r
- $(CP) $(BLD)/ddeclient.exe $(INSTALL_DIR)/bin\r
- $(CP) $(BLD)/cmdproxy.exe $(INSTALL_DIR)/bin\r
- $(CP) $(BLD)/runemacs.exe $(INSTALL_DIR)/bin\r
- $(CP) README.W32 $(INSTALL_DIR)\r
- - $(DEL) ../same-dir.tst\r
- - $(DEL) $(INSTALL_DIR)/same-dir.tst\r
- echo SameDirTest > "$(INSTALL_DIR)/same-dir.tst"\r
+ - $(DEL) ../$(DIRNAME)_same-dir.tst\r
+ - $(DEL) $(INSTALL_DIR)/$(DIRNAME)_same-dir.tst\r
+ echo SameDirTest > "$(INSTALL_DIR)/$(DIRNAME)_same-dir.tst"\r
- mkdir "$(INSTALL_DIR)/etc"\r
- mkdir "$(INSTALL_DIR)/info"\r
- mkdir "$(INSTALL_DIR)/lock"\r
$(IFNOTSAMEDIR) $(CP_DIR) ../info $(INSTALL_DIR) $(ENDIF)\r
$(IFNOTSAMEDIR) $(CP) ../COPYING $(INSTALL_DIR) $(ENDIF)\r
- $(CP) ../COPYING $(INSTALL_DIR)/bin\r
- - $(DEL) ../same-dir.tst\r
- - $(DEL) $(INSTALL_DIR)/same-dir.tst\r
+ - $(DEL) ../$(DIRNAME)_same-dir.tst\r
+ - $(DEL) $(INSTALL_DIR)/$(DIRNAME)_same-dir.tst\r
\r
-install-other-dirs-nmake:\r
+install-other-dirs-nmake: all\r
cd ..\lib-src\r
$(MAKE) $(MFLAGS) install\r
cd ..\src\r
$(MAKE) $(MFLAGS) install\r
cd ..\nt\r
\r
-install-other-dirs-gmake:\r
+install-other-dirs-gmake: all\r
$(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src install\r
$(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src install\r
$(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp install\r
$(MAKE) $(MFLAGS) $(XMFLAGS) -C ../leim install\r
\r
-install-shortcuts:\r
+install-shortcuts: $(INSTALL_DIR)/bin\r
+ - $(CP) $(BLD)/addpm.exe $(INSTALL_DIR)/bin\r
"$(INSTALL_DIR)/bin/addpm" -q\r
\r
maybe-copy-distfiles: maybe-copy-distfiles-$(SHELLTYPE)\r
\r
-maybe-copy-distfiles-CMD: doit\r
+maybe-copy-distfiles-CMD: create-tmp-dist-dir doit\r
@if not $(ARGQUOTE)$(DIST_FILES)$(ARGQUOTE)=="" $(CP_DIR) $(DIST_FILES) $(TMP_DIST_DIR)/bin\r
\r
-maybe-copy-distfiles-SH: doit\r
+maybe-copy-distfiles-SH: create-tmp-dist-dir doit\r
@if [ ! $(ARGQUOTE)$(DIST_FILES)$(ARGQUOTE)=="" ] ; then \\r
$(CP_DIR) $(DIST_FILES) $(TMP_DIST_DIR)/bin ; \\r
fi\r
# Also create bin directory for dist files.\r
mkdir "$(TMP_DIST_DIR)/bin"\r
\r
-dist: install-bin create-tmp-dist-dir maybe-copy-distfiles\r
+dist: install-bin maybe-copy-distfiles\r
$(CP) "$(INSTALL_DIR)/BUGS" $(TMP_DIST_DIR)\r
$(CP) "$(INSTALL_DIR)/COPYING" $(TMP_DIST_DIR)\r
$(CP) "$(INSTALL_DIR)/README" $(TMP_DIST_DIR)\r
\r
CURDIR = $(MAKEDIR:\=/)\r
THISDIR = $(MAKEDIR)\r
+DIRNAME =\r
\r
ALL_DEPS = $**\r
\r
\r
CP = cp -f\r
CP_DIR = cp -rf\r
-IFNOTSAMEDIR = if not exist ..\same-dir.tst\r
+IFNOTSAMEDIR = if not exist ..\$(DIRNAME)_same-dir.tst\r
ENDIF =\r
FOREACH = for %%f in (\r
FORVAR = %%f\r