diff nt/xemacs.mak @ 2106:e0cad74058ab

[xemacs-hg @ 2004-05-31 23:41:30 by adrian] xemacs-21.5: Handle xemacs_extra_name in xemacs.mak, improve copy -------------------- ChangeLog entries follow: -------------------- nt/ChangeLog addition: 2004-06-01 Adrian Aichner <adrian@xemacs.org> * xemacs.mak: Don't echo DEL command. Use COPYCMD everywhere. Remove /r switch from COPY and COPYDIR, as environment variable COPYCMD takes care of this. * xemacs.mak (COPYCMD): New. Used to initialize environment variable by same name. * xemacs.mak (TEMACS_CPP_FLAGS_NO_CFLAGS): Handle xemacs_extra_name (CVS date stamp).
author adrian
date Mon, 31 May 2004 23:41:30 +0000
parents 39ed74ae932b
children ee2db3cf5512
line wrap: on
line diff
--- a/nt/xemacs.mak	Mon May 31 21:50:55 2004 +0000
+++ b/nt/xemacs.mak	Mon May 31 23:41:30 2004 +0000
@@ -42,18 +42,17 @@
 # Put these before including config.inc so they can be overridden there.
 # Note that some versions of some commands are deficient.
 
-# Define the 'del' command to use
+# Define a variable for the 'del' command to use.
 # WinME's DEL command can only handle one argument and only has the /P flag.
 # So only delete one glob at a time.  Override flags in config.inc.
-DEL=del
+DEL=-del
 
 # Tell COPY, MOVE, and XCOPY to suppress confirmation for overwriting
 # files.
-# set COPYCMD=/y
+COPYCMD=/y
 # Define the 'copy' command to use.
-# Use /r (instead of /y), which exists on Windows NT 4 and 5.
-COPY=xcopy /q /r
-COPYDIR=xcopy /q /r /e
+COPY=xcopy /q
+COPYDIR=xcopy /q /e
 
 ########################### Includes, and source and build tree determination.
 
@@ -631,6 +630,9 @@
  -DEMACS_MINOR_VERSION=$(emacs_minor_version) \
  $(EMACS_BETA_VERSION) $(EMACS_PATCH_LEVEL) \
  -DXEMACS_CODENAME=\"$(xemacs_codename:&=and)\" \
+!if defined(xemacs_extra_name)
+ -DXEMACS_EXTRA_NAME=\"$(xemacs_extra_name:"=)\" \
+!endif
  -DEMACS_CONFIGURATION=\"$(EMACS_CONFIGURATION)\" \
  -DPATH_PACKAGEPATH=\"$(PATH_PACKAGEPATH)\"
 TEMACS_CPP_FLAGS=$(CFLAGS) $(TEMACS_CPP_FLAGS_NO_CFLAGS)
@@ -822,6 +824,7 @@
 # #### you use xcopy to copy a file from one name to another, it
 # #### PROMPTS you to see if you meant the second as a directory!  and
 # #### no switch to mean "no of course, you idiots, it's a file!"
+	set COPYCMD=$(COPYCMD)
 	@copy $(SRC)\config.h.in $(SRC)\config.h
 
 #$(SRC)\Emacs.ad.h: $(SRCROOT)\etc\Emacs.ad
@@ -831,11 +834,11 @@
 #	!"cd $(SRC); cp paths.h.in paths.h"
 
 $(SRC)\Emacs.ad.h:	$(NT)\Emacs.ad.h
-	set COPYCMD=/y
+	set COPYCMD=$(COPYCMD)
 	@$(COPY) $(NT)\Emacs.ad.h $(SRC)
 
 $(SRC)\paths.h:	$(NT)\paths.h
-	set COPYCMD=/y
+	set COPYCMD=$(COPYCMD)
 	@$(COPY) $(NT)\paths.h $(SRC)
 
 
@@ -1443,7 +1446,7 @@
 # use this rule to install the system
 install:	all
 	cd $(NT)
-	set COPYCMD=/y
+	set COPYCMD=$(COPYCMD)
 	@echo Installing in $(INSTALL_DIR) ...
 	@echo PlaceHolder > PlaceHolder
 	@$(COPY) $(SRCROOT)\PROBLEMS "$(INSTALL_DIR)\"