+2011-02-09 Eli Zaretskii <eliz@gnu.org>
+
+ * makefile.w32-in (bootstrap-nmake, bootstrap-gmake): Make the
+ "make-docfile" target in lib-src, before bootstrapping the src
+ directory. Needed since building in src needs to run make-docfile
+ to produce globals.h.
+
2011-02-04 Eli Zaretskii <eliz@gnu.org>
* config.nt (inline) [__GNUC__]: Define (for gnulib).
cd ..\src\r
$(MAKE) $(MFLAGS) clean\r
cd ..\lib-src\r
- $(MAKE) $(MFLAGS) clean\r
+ $(MAKE) $(MFLAGS) clean make-docfile\r
cd ..\lib\r
$(MAKE) $(MFLAGS) clean all\r
cd ..\src\r
bootstrap-gmake: addsection cmdproxy\r
$(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lisp bootstrap-clean\r
$(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src clean\r
- $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src clean\r
+ $(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib-src clean make-docfile\r
$(MAKE) $(MFLAGS) $(XMFLAGS) -C ../lib clean all\r
$(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap\r
$(MAKE) $(MFLAGS) $(XMFLAGS) -C ../src bootstrap-clean\r
+2011-02-09 Eli Zaretskii <eliz@gnu.org>
+
+ * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj): New
+ macros.
+ (globals.h, gl-stamp): New targets.
+ (clean): Clean gl-stamp and globals.h.
+
2011-02-09 Andreas Schwab <schwab@linux-m68k.org>
* Makefile.in (gl-stamp): Create globals.h here.
echo $(OBJ2) '\' >> buildobj.h
echo '$(DQUOTE)' >> buildobj.h
+GLOBAL_SOURCES = dosfns.c msdos.c \
+ xterm.c xfns.c xmenu.c xselect.c xrdb.c xsmfns.c fringe.c image.c \
+ fontset.c menu.c dbusbind.c \
+ w32.c w32console.c w32fns.c w32heap.c w32inevt.c \
+ w32menu.c w32proc.c w32reg.c w32select.c w32term.c w32xfns.c \
+ font.c w32font.c w32uniscribe.c \
+ dispnew.c frame.c scroll.c xdisp.c window.c bidi.c \
+ charset.c coding.c category.c ccl.c character.c chartab.c \
+ cm.c term.c terminal.c xfaces.c \
+ emacs.c keyboard.c macros.c keymap.c sysdep.c \
+ buffer.c filelock.c insdel.c marker.c \
+ minibuf.c fileio.c dired.c filemode.c \
+ cmds.c casetab.c casefiddle.c indent.c search.c regex.c undo.c \
+ alloc.c data.c doc.c editfns.c callint.c \
+ eval.c floatfns.c fns.c print.c lread.c \
+ syntax.c bytecode.c \
+ process.c callproc.c unexw32.c \
+ region-cache.c sound.c atimer.c \
+ doprnt.c intervals.c textprop.c composite.c md5.c
+SOME_MACHINE_OBJECTS = dosfns.o msdos.o \
+ xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o dbusbind.o
+obj = $(GLOBAL_SOURCES:.c=.o)
+
+globals.h: gl-stamp
+
+gl-stamp: ../lib-src/$(BLD)/make-docfile.exe $(GLOBAL_SOURCES)
+ - $(DEL) gl-tmp
+ "../lib-src/$(BLD)/make-docfile" -d . -g $(SOME_MACHINE_OBJECTS) $(obj) > gl-tmp
+ cmd /c "fc /b gl-tmp globals.h >nul 2>&1 || $(CP) gl-tmp globals.h"
+ - $(DEL) gl-tmp
+ echo timestamp > $@
+
bootstrap: bootstrap-emacs
#
- $(DEL) "s/*.h~" "m/*.h~"
- $(DEL) $(COMPILER_TEMP_FILES)
- $(DEL_TREE) $(OBJDIR)
- - $(DEL) stamp_BLD
+ - $(DEL) stamp_BLD gl-stamp globals.h
- $(DEL) buildobj.h
distclean: cleanall