changeset 104676:ccd0cfe63be6

(buildobj.h): Renamed from $(SRC)/buildobj.h. (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not $(SRC)/buildobj.h. ($(BLD)/doc.$(O)): Depend on buildobj.h, not on $(SRC)/buildobj.h.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 28 Aug 2009 13:58:52 +0000
parents db743edf42b2
children 4be7a4e891e2
files src/makefile.w32-in
diffstat 1 files changed, 16 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/src/makefile.w32-in	Fri Aug 28 12:32:55 2009 +0000
+++ b/src/makefile.w32-in	Fri Aug 28 13:58:52 2009 +0000
@@ -182,24 +182,26 @@
 
 # These omit firstfile.${O}, but there's no documentation in there
 # anyways.
-$(SRC)/buildobj.h: $(SRC)/makefile.w32-in
+buildobj.h: $(SRC)/makefile.w32-in
 	$(MAKE) $(MFLAGS) make-buildobj-$(SHELLTYPE)
 
+# Cannot have blanks between the backslash and the redirection
+# characters, because CMD's `echo' will put them in buildobj.h.
 make-buildobj-CMD:
-	echo #define BUILDOBJ ^"\> $(SRC)/buildobj.h
-	echo $(OBJ0)            \>> $(SRC)/buildobj.h
-	echo $(OBJ1)            \>> $(SRC)/buildobj.h
-	echo $(WIN32OBJ)        \>> $(SRC)/buildobj.h
-	echo $(FONTOBJ)         \>> $(SRC)/buildobj.h
-	echo ^">> $(SRC)/buildobj.h
+	echo #define BUILDOBJ ^"\> buildobj.h
+	echo $(OBJ0)            \>> buildobj.h
+	echo $(OBJ1)            \>> buildobj.h
+	echo $(WIN32OBJ)        \>> buildobj.h
+	echo $(FONTOBJ)         \>> buildobj.h
+	echo ^">> buildobj.h
 
 make-buildobj-SH:
-	echo '#define BUILDOBJ $(DQUOTE)\'  > $(SRC)/buildobj.h
-	echo $(OBJ0)                   '\' >> $(SRC)/buildobj.h
-	echo $(OBJ1)                   '\' >> $(SRC)/buildobj.h
-	echo $(WIN32OBJ)               '\' >> $(SRC)/buildobj.h
-	echo $(FONTOBJ)                '\' >> $(SRC)/buildobj.h
-	echo '$(DQUOTE)'                   >> $(SRC)/buildobj.h
+	echo '#define BUILDOBJ $(DQUOTE)\'  > buildobj.h
+	echo $(OBJ0)                   '\' >> buildobj.h
+	echo $(OBJ1)                   '\' >> buildobj.h
+	echo $(WIN32OBJ)               '\' >> buildobj.h
+	echo $(FONTOBJ)                '\' >> buildobj.h
+	echo '$(DQUOTE)'                   >> buildobj.h
 
 bootstrap: bootstrap-emacs
 
@@ -597,7 +599,7 @@
 $(BLD)/doc.$(O) : \
 	$(SRC)/doc.c \
 	$(CONFIG_H) \
-	$(SRC)/buildobj.h \
+	buildobj.h \
 	$(EMACS_ROOT)/nt/inc/unistd.h \
 	$(EMACS_ROOT)/nt/inc/sys/file.h \
 	$(EMACS_ROOT)/nt/inc/sys/time.h \