aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhillip Lord2017-03-07 13:22:18 +0000
committerPhillip Lord2017-03-07 13:48:20 +0000
commit8f58747a878941661e2f0f667e18620cf9b632ff (patch)
tree713bec88630b060340bae9859694505fb60745ae /src
parent11436e2890fda7367936b63b8fe2daca6957d3ef (diff)
downloademacs-8f58747a878941661e2f0f667e18620cf9b632ff.tar.gz
emacs-8f58747a878941661e2f0f667e18620cf9b632ff.zip
Revert "Speed generation of ldefs-boot-auto"
This reverts commit 7b5e1c8238ef961fd3305b1dce053b9bced684ba. This commit has been reverted because the new mechanism was too sensitive to changes in the lisp source, generation of new ldefs-boot files was platform specific and resulted in warnings about undefined variables. See also 11436e2890d.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.in25
1 files changed, 2 insertions, 23 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index 730f79801c3..ab319837249 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -761,30 +761,9 @@ endif
761 @: Compile some files earlier to speed up further compilation. 761 @: Compile some files earlier to speed up further compilation.
762 $(MAKE) -C ../lisp compile-first EMACS="$(bootstrap_exe)" 762 $(MAKE) -C ../lisp compile-first EMACS="$(bootstrap_exe)"
763 763
764shortlisp-keep=loadup.el loaddefs.el
765
766## Generating ldefs-boot-auto.el requires that we dump both emacs and
767## the bootstrap-emacs so that we can see which autoloads are actually
768## called. This is a slightly messy affair as we must ensure that
769## they are build as if from clean, which means deleting all the build
770## files first. We use loaddefs.el to make sure that we can build
771## from bootstrap; obviously, this assumes that loaddefs.el already
772## exists or we have a bootstrap problem!
773generate-ldefs-boot: $(lispsource)/loaddefs.el
774 echo Cleaning to enable generate-ldefs-boot
775 mv $(lispsource)/loaddefs.el $(lispsource)/ldefs-boot-auto.el
776 $(MAKE) -C $(lispsource) compile-first-delete
777 -for f in $(filter-out $(shortlisp-keep), $(shortlisp)); do test -e $(lispsource)/$$f && rm -v $(lispsource)/$$f; done
778 - rm bootstrap-emacs$(EXEEXT)
779 - rm emacs$(EXEEXT)
780 echo Building generate-ldefs-boot
781 $(MAKE) -j 1 emacs$(EXEEXT) \
782 GENERATE_LDEFS_BOOT="generate-ldefs-boot" \
783 2>&1 | tee $(lispsource)/ldefs-boot-auto.temp
784 echo Reformatting ldefs-boot-auto.el
785 emacs$(EXEEXT) -batch --load ../admin/ldefs-clean.el --funcall ldefs-clean
786 rm ../lisp/ldefs-boot-auto.temp
787 764
765generate-ldefs-boot: bootstrap-emacs$(EXEEXT)
766 $(RUN_TEMACS) --batch $(BUILD_DETAILS) --load loadup bootstrap
788 767
789ifeq ($(AUTO_DEPEND),yes) 768ifeq ($(AUTO_DEPEND),yes)
790-include $(ALLOBJS:%.o=${DEPDIR}/%.d) 769-include $(ALLOBJS:%.o=${DEPDIR}/%.d)