aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorStefan Monnier2008-06-22 13:57:28 +0000
committerStefan Monnier2008-06-22 13:57:28 +0000
commitb4945b9599f0651fef5fa2ca2ef6034fa0b5bfaa (patch)
treed61baf573d7a8303e0935741b886a33337e401c7 /Makefile.in
parent3656581540295dc1d28e2c3341092dba057f2523 (diff)
downloademacs-b4945b9599f0651fef5fa2ca2ef6034fa0b5bfaa.tar.gz
emacs-b4945b9599f0651fef5fa2ca2ef6034fa0b5bfaa.zip
* Makefile.in ${SUBDIR}: Pass additional BOOTSTRAPEMACS argument.
* Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el): Use $(BOOTSTRAPEMACS) rather than witness-emacs. (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it. (witness-emacs): Remove. (lisp, shortlisp): Move loaddefs.el earlier. (mostlyclean): Forget about witness-emacs. * Makefile.in (COMPILE_FIRST): Trim down and add autoload.el.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in15
1 files changed, 13 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index ae92424bf8e..abd61490fbe 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -315,10 +315,21 @@ lib-src: FRC src/config.stamp
315# We need to build `emacs' in `src' to compile the *.elc files in `lisp'. 315# We need to build `emacs' in `src' to compile the *.elc files in `lisp'.
316lisp: src 316lisp: src
317 317
318# Pass to src/Makefile.in an additional BOOTSTRAPEMACS variable which
319# is either set to bootstrap-emacs (in case bootstrap-emacs has not been
320# constructed yet) or the empty string (otherwise).
321# src/Makefile.in uses it to implement conditional dependencies, so that
322# files that need bootstrap-emacs to be built do not additionally need
323# to be kept fresher than bootstrap-emacs. Otherwise changing a single
324# file src/foo.c forces dumping a new bootstrap-emacs, then re-byte-compiling
325# all preloaded elisp files, and only then dump the actual src/emacs, which
326# is not wrong, but is overkill in 99.99% of the cases.
318${SUBDIR}: ${SUBDIR_MAKEFILES} FRC 327${SUBDIR}: ${SUBDIR_MAKEFILES} FRC
319 cd $@; $(MAKE) all $(MFLAGS) \ 328 boot=bootstrap-emacs$(EXEEXT); \
329 if [ -x "src/$$boot" ]; then boot=""; fi; \
330 cd $@; $(MAKE) all $(MFLAGS) \
320 CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \ 331 CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \
321 LDFLAGS='${LDFLAGS}' MAKE='${MAKE}' 332 LDFLAGS='${LDFLAGS}' MAKE='${MAKE}' BOOTSTRAPEMACS="$$boot"
322 333
323blessmail: ${SUBDIR_MAKEFILES} src FRC 334blessmail: ${SUBDIR_MAKEFILES} src FRC
324 cd lib-src; $(MAKE) maybe-blessmail $(MFLAGS) \ 335 cd lib-src; $(MAKE) maybe-blessmail $(MFLAGS) \