diff options
author | Eli Zaretskii <eliz@gnu.org> | 2007-07-13 20:23:12 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2007-07-13 20:23:12 +0000 |
commit | 564a3032f90e492446ff149e6afcc32c0371f749 (patch) | |
tree | 2f96ca5d8a80b0f87583007b13810f1d6c8af375 /lisp/makefile.w32-in | |
parent | 3fc750390ca615aa353da08361b8cdc0ad578052 (diff) | |
download | emacs-564a3032f90e492446ff149e6afcc32c0371f749.tar.gz |
(install-lisp-SH, install-lisp-CMD): New targets.
(install): Use them to copy all *.el files before *.elc.
Diffstat (limited to 'lisp/makefile.w32-in')
-rw-r--r-- | lisp/makefile.w32-in | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lisp/makefile.w32-in b/lisp/makefile.w32-in index 29b3a185fb5..6e8a3f5d39a 100644 --- a/lisp/makefile.w32-in +++ b/lisp/makefile.w32-in @@ -408,7 +408,7 @@ install: - $(DEL) "$(INSTALL_DIR)/same-dir.tst" echo SameDirTest > "$(INSTALL_DIR)/same-dir.tst" #ifdef COPY_LISP_SOURCE - $(IFNOTSAMEDIR) $(CP_DIR) . "$(INSTALL_DIR)/lisp" $(ENDIF) + $(IFNOTSAMEDIR) $(MAKE) $(MFLAGS) install-lisp-$(SHELLTYPE) $(ENDIF) #else # $(IFNOTSAMEDIR) $(CP_DIR) *.elc "$(INSTALL_DIR)/lisp" $(ENDIF) # $(IFNOTSAMEDIR) $(CP) cus-load.el "$(INSTALL_DIR)/lisp" $(ENDIF) @@ -425,6 +425,19 @@ install: - $(DEL) ../same-dir.tst - $(DEL) "$(INSTALL_DIR)/same-dir.tst" +# Need to copy *.el files first, to avoid "source file is newer" annoyance +# since cp does not preserve time stamps +install-lisp-SH: + cp -f *.el "$(INSTALL_DIR)/lisp" + for dir in $(WINS); do mkdir "$(INSTALL_DIR)/lisp/$$dir" && cp -f $$dir/*.el "$(INSTALL_DIR)/lisp/$$dir"; done + for dir in . $(WINS); do cp $$dir/*.elc "$(INSTALL_DIR)/lisp/$$dir"; done + +install-lisp-CMD: + cp -f *.el "$(INSTALL_DIR)/lisp" + for %%f in ($(WINS)) do mkdir "$(INSTALL_DIR)/lisp/%%f" + for %%f in ($(WINS)) do cp -f %%f/*.el "$(INSTALL_DIR)/lisp/%%f" + for %%f in (. $(WINS)) do cp -f %%f/*.elc "$(INSTALL_DIR)/lisp/%%f" + # # Maintenance # |