]> git.eshelyaron.com Git - emacs.git/commitdiff
(lib-src, lisp): Use simpler rule.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 28 Feb 2009 04:44:50 +0000 (04:44 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 28 Feb 2009 04:44:50 +0000 (04:44 +0000)
(src): Be more specific to avoid recompiling all the .elc files just
because the bootstrap-emacs is missing.

ChangeLog
Makefile.in

index 1259dd1327ec8a31f4f10540cbf06fc78c418922..c3ee564cf11dd86bb5597136c1840fb5d8cfada8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-02-28  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * Makefile.in (lib-src, lisp): Use simpler rule.
+       (src): Be more specific to avoid recompiling all the .elc files just
+       because the bootstrap-emacs is missing.
+
 2009-02-26  Chong Yidong  <cyd@stupidchicken.com>
 
        * configure.in: Require librsvg >= 2.11.
index 4439e85bb11f207ff00a9e3f1a31082b55607131..14036608d676af96bf673fa9f3559ac6d95dbc46 100644 (file)
@@ -320,6 +320,12 @@ src:       lib-src FRC
 # We need to build `emacs' in `src' to compile the *.elc files in `lisp'.
 lisp: src
 
+# These targets should be "${SUBDIR} without `src'".
+lib-src lisp: Makefile FRC
+       cd $@; $(MAKE) all $(MFLAGS)                           \
+         CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \
+         LDFLAGS='${LDFLAGS}' MAKE='${MAKE}'
+
 # Pass to src/Makefile.in an additional BOOTSTRAPEMACS variable which
 # is either set to bootstrap-emacs (in case bootstrap-emacs has not been
 # constructed yet) or the empty string (otherwise).
@@ -329,12 +335,16 @@ lisp: src
 # file src/foo.c forces dumping a new bootstrap-emacs, then re-byte-compiling
 # all preloaded elisp files, and only then dump the actual src/emacs, which
 # is not wrong, but is overkill in 99.99% of the cases.
-${SUBDIR}: Makefile FRC
+src: Makefile FRC
        boot=bootstrap-emacs$(EXEEXT);                         \
-       if [ -x "src/$$boot" ]; then boot=""; fi;                   \
+       if [ ! -x "src/$$boot" ]; then                                     \
+           cd $@; $(MAKE) all $(MFLAGS)                                   \
+             CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}'         \
+             LDFLAGS='${LDFLAGS}' MAKE='${MAKE}' BOOTSTRAPEMACS="$$boot"; \
+       fi;                                                                \
        cd $@; $(MAKE) all $(MFLAGS)                           \
          CC='${CC}' CFLAGS='${CFLAGS}' CPPFLAGS='${CPPFLAGS}' \
-         LDFLAGS='${LDFLAGS}' MAKE='${MAKE}' BOOTSTRAPEMACS="$$boot"
+         LDFLAGS='${LDFLAGS}' MAKE='${MAKE}' BOOTSTRAPEMACS=""
 
 blessmail: Makefile src FRC
        cd lib-src; $(MAKE) maybe-blessmail $(MFLAGS) \