diff options
author | Eli Zaretskii <eliz@gnu.org> | 2007-07-20 19:27:27 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2007-07-20 19:27:27 +0000 |
commit | e4fe7e5e9515ca3bf38acdbc86f4449a23535186 (patch) | |
tree | 7c9a122c88e440e7b93f2a36c10bf6f32cd194e7 /lisp/makefile.w32-in | |
parent | 75be52584d49c52bfb5bc21563bc64640c3ea0b9 (diff) | |
download | emacs-e4fe7e5e9515ca3bf38acdbc86f4449a23535186.tar.gz emacs-e4fe7e5e9515ca3bf38acdbc86f4449a23535186.tar.bz2 emacs-e4fe7e5e9515ca3bf38acdbc86f4449a23535186.zip |
(install-lisp-SH, install-lisp-CMD): New targets.
(install): Use them to copy all *.el files before *.elc.
(clean): Don't delete *~.
Diffstat (limited to 'lisp/makefile.w32-in')
-rw-r--r-- | lisp/makefile.w32-in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/makefile.w32-in b/lisp/makefile.w32-in index 6e8a3f5d39a..55b9f9ed5e2 100644 --- a/lisp/makefile.w32-in +++ b/lisp/makefile.w32-in @@ -429,17 +429,20 @@ install: # 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 [ -d "$(INSTALL_DIR)/lisp/$$dir" ] || mkdir "$(INSTALL_DIR)/lisp/$$dir"; done + for dir in $(WINS); do 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 if not exist "$(INSTALL_DIR)/lisp/%%f" 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 # +# We used to delete *~ here, but that might inadvertently remove +# precious files if it happens to match their short 8+3 aliases. clean: - - $(DEL) *~ + - $(DEL) *.el~ |