emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 3e312d11ce: Reshuffle the generation of the OKURO-NASI entries to


From: Lars Ingebrigtsen
Subject: master 3e312d11ce: Reshuffle the generation of the OKURO-NASI entries to speed up build
Date: Tue, 31 May 2022 22:50:13 -0400 (EDT)

branch: master
commit 3e312d11ce3bb402e6162ba9eaceee418a25d4d1
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Reshuffle the generation of the OKURO-NASI entries to speed up build
    
    * leim/Makefile.in (all): Remove the ja-dic target from all -- we
    don't need this file generated before we generate the .elc files.
    (generate-ja-dic): Add new target.
    
    * lisp/Makefile.in (.PHONY, generate-ja-dic): Add new target.
    (all): Make all depend on the new generate-ja-dic target so that
    the OKURO-NASI entries are computed while the .elc files are
    compiled.  On a AMD Ryzen 9 5950X 16-Core Processor this brings
    compilation time on a "make -j32 bootstrap" down from 1m52s to 1m34s.
---
 leim/Makefile.in | 4 +++-
 lisp/Makefile.in | 8 ++++++--
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/leim/Makefile.in b/leim/Makefile.in
index 4e70e8b7e9..3b4216c0b8 100644
--- a/leim/Makefile.in
+++ b/leim/Makefile.in
@@ -80,7 +80,7 @@ MISC= \
 TIT_MISC = ${TIT_GB} ${TIT_BIG5} ${MISC}
 
 
-all: ${leimdir}/leim-list.el ${leimdir}/ja-dic/ja-dic.el
+all: ${leimdir}/leim-list.el
 .PHONY: all
 
 
@@ -129,6 +129,8 @@ ${leimdir}/leim-list.el: ${srcdir}/leim-ext.el ${TIT_MISC}
 
 ${leimdir}/ja-dic/ja-dic.el: | $(leimdir)/ja-dic
 
+.PHONY: generate-ja-dic
+generate-ja-dic: ${leimdir}/ja-dic/ja-dic.el
 ${leimdir}/ja-dic/ja-dic.el: $(srcdir)/SKK-DIC/SKK-JISYO.L
        $(AM_V_GEN)$(RUN_EMACS) -batch -l ja-dic-cnv \
          --eval "(setq max-specpdl-size 5000)" \
diff --git a/lisp/Makefile.in b/lisp/Makefile.in
index e3e6c41fec..ada791751f 100644
--- a/lisp/Makefile.in
+++ b/lisp/Makefile.in
@@ -118,10 +118,11 @@ SUBDIRS_SUBDIRS = $(filter-out ${srcdir}/cedet% 
${srcdir}/leim%,${SUBDIRS})
 
 # cus-load and finder-inf are not explicitly requested by anything, so
 # we add them here to make sure they get built.
-all: compile-main $(lisp)/cus-load.el $(lisp)/finder-inf.el
+all: compile-main $(lisp)/cus-load.el $(lisp)/finder-inf.el generate-ja-dic
 
 PHONY_EXTRAS =
-.PHONY: all custom-deps finder-data autoloads update-subdirs $(PHONY_EXTRAS)
+.PHONY: all custom-deps finder-data autoloads update-subdirs $(PHONY_EXTRAS) \
+       generate-ja-dic
 
 # custom-deps and finder-data both used to scan _all_ the *.el files.
 # This could lead to problems in parallel builds if automatically
@@ -152,6 +153,9 @@ $(lisp)/finder-inf.el:
          --eval '(setq generated-finder-keywords-file (unmsys--file-name 
"$(srcdir)/finder-inf.el"))' \
          -f finder-compile-keywords-make-dist ${SUBDIRS_FINDER}
 
+generate-ja-dic:
+       $(MAKE) -C ../leim generate-ja-dic EMACS="$(EMACS)"
+
 ## Comments on loaddefs generation:
 
 # loaddefs depends on gen-lisp for two reasons:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]