changeset 73672:4f7cb3d8f0b1

(../src/$(BLD)/temacs.exe): Create as temporary file if it doesn't already exist.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 04 Nov 2006 12:00:20 +0000
parents ea41a7afda1e
children dde3145743e4
files lib-src/makefile.w32-in
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/makefile.w32-in	Sat Nov 04 11:56:14 2006 +0000
+++ b/lib-src/makefile.w32-in	Sat Nov 04 12:00:20 2006 +0000
@@ -276,6 +276,15 @@
 	$(lispsource)window.elc \
 	$(lispsource)version.el
 
+# This is needed the first time we build the tree, since temacs.exe
+# does not exist yet, and the DOC rule needs it to rebuild DOC whenever
+# Emacs is rebuilt.
+../src/$(BLD)/temacs.exe:
+	- mkdir "../src/$(OBJDIR)"
+	- mkdir "../src/$(BLD)"
+	@echo temacs > temacs.exe
+	$(CP) temacs.exe ../src/$(BLD)
+	- $(DEL) temacs.exe
 
 DOC	      = DOC
 $(DOC):		$(BLD) $(BLD)/make-docfile.exe ../src/$(BLD)/temacs.exe $(lisp1) $(lisp2)