# HG changeset patch # User Eli Zaretskii # Date 1251467932 0 # Node ID ccd0cfe63be63942fbdfb7abd301f06804599a50 # Parent db743edf42b2fc90f324392c65da99a64f9fc2d7 (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. diff -r db743edf42b2 -r ccd0cfe63be6 src/makefile.w32-in --- 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 \