aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2023-09-24 15:30:01 +0300
committerEli Zaretskii2023-09-24 15:30:01 +0300
commit7d5fee0feaa5740f3fbbfc6d5f13855bf58b9c25 (patch)
tree739733890723c3dfcb1b04ce8ffc256094c3d862
parentead491d230721e6c12c849878cdcd2890cb0454b (diff)
downloademacs-7d5fee0feaa5740f3fbbfc6d5f13855bf58b9c25.tar.gz
emacs-7d5fee0feaa5740f3fbbfc6d5f13855bf58b9c25.zip
Support regeneration of ja-dic.el under '--with-small-ja-dic'
* lisp/international/ja-dic-cnv.el (skkdic-convert): Record the value of SMALL_JA_DIC option used to produce ja-dic.el. * leim/Makefile.in (small-ja-dic-option): New target, triggers regeneration of ja-dic.el when the value of SMALL_JA_DIC option changes by the configure script. Suggested by Ulrich Mueller <ulm@gentoo.org>. (${leimdir}/ja-dic/ja-dic.el): Depend on 'small-ja-dic-option'. (Bug#66125) * make-dist (possibly_non_vc_files): * .gitignore: Add 'leim/small-ja-dic-option'.
-rw-r--r--.gitignore1
-rw-r--r--leim/Makefile.in9
-rw-r--r--lisp/international/ja-dic-cnv.el2
-rwxr-xr-xmake-dist1
4 files changed, 12 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index b09a0c030b3..3cec4cc0685 100644
--- a/.gitignore
+++ b/.gitignore
@@ -95,6 +95,7 @@ lisp/cedet/semantic/grammar-wy.el
95lisp/eshell/esh-groups.el 95lisp/eshell/esh-groups.el
96lisp/finder-inf.el 96lisp/finder-inf.el
97lisp/leim/ja-dic/ 97lisp/leim/ja-dic/
98leim/small-ja-dic-option
98lisp/leim/leim-list.el 99lisp/leim/leim-list.el
99lisp/leim/quail/4Corner.el 100lisp/leim/quail/4Corner.el
100lisp/leim/quail/ARRAY30.el 101lisp/leim/quail/ARRAY30.el
diff --git a/leim/Makefile.in b/leim/Makefile.in
index 4c6c3179283..f7dfdf66f30 100644
--- a/leim/Makefile.in
+++ b/leim/Makefile.in
@@ -26,6 +26,7 @@ SHELL = @SHELL@
26# Here are the things that we expect ../configure to edit. 26# Here are the things that we expect ../configure to edit.
27srcdir=@srcdir@ 27srcdir=@srcdir@
28top_builddir = @top_builddir@ 28top_builddir = @top_builddir@
29top_srcdir = @top_srcdir@
29 30
30# Where the generated files go. 31# Where the generated files go.
31leimdir = ${srcdir}/../lisp/leim 32leimdir = ${srcdir}/../lisp/leim
@@ -134,9 +135,15 @@ ${leimdir}/leim-list.el: ${srcdir}/leim-ext.el ${TIT_MISC}
134 135
135${leimdir}/ja-dic/ja-dic.el: | $(leimdir)/ja-dic 136${leimdir}/ja-dic/ja-dic.el: | $(leimdir)/ja-dic
136 137
138# This is used to support regeneration of ja-dic when the SMALL_JA_DIC
139# option is flipped by the configure-time option.
140small-ja-dic-option: ../config.status
141 $(AM_V_GEN)echo "Small ja-dic option: $(SMALL_JA_DIC)" > $@.$$$$ && \
142 ${top_srcdir}/build-aux/move-if-change $@.$$$$ $@
143
137.PHONY: generate-ja-dic 144.PHONY: generate-ja-dic
138generate-ja-dic: ${leimdir}/ja-dic/ja-dic.el 145generate-ja-dic: ${leimdir}/ja-dic/ja-dic.el
139${leimdir}/ja-dic/ja-dic.el: $(srcdir)/SKK-DIC/SKK-JISYO.L 146${leimdir}/ja-dic/ja-dic.el: $(srcdir)/SKK-DIC/SKK-JISYO.L small-ja-dic-option
140 $(AM_V_GEN)$(RUN_EMACS) -batch -l ja-dic-cnv \ 147 $(AM_V_GEN)$(RUN_EMACS) -batch -l ja-dic-cnv \
141 -f batch-skkdic-convert -dir "$(leimdir)/ja-dic" $(JA_DIC_NO_REDUCTION_OPTION) "$<" 148 -f batch-skkdic-convert -dir "$(leimdir)/ja-dic" $(JA_DIC_NO_REDUCTION_OPTION) "$<"
142 149
diff --git a/lisp/international/ja-dic-cnv.el b/lisp/international/ja-dic-cnv.el
index 9ce31f11d91..c507aa58807 100644
--- a/lisp/international/ja-dic-cnv.el
+++ b/lisp/international/ja-dic-cnv.el
@@ -346,6 +346,8 @@ If NO-REDUCTION is non-nil, do not reduce the dictionary vocabulary."
346 (erase-buffer) 346 (erase-buffer)
347 (buffer-disable-undo) 347 (buffer-disable-undo)
348 (generate-lisp-file-heading ja-dic-filename 'skkdic-convert :code nil) 348 (generate-lisp-file-heading ja-dic-filename 'skkdic-convert :code nil)
349 (insert (format ";; Generated with small ja-dic option: %s\n\n"
350 (if no-reduction "no" "yes")))
349 (insert ";; Original SKK dictionary file: " 351 (insert ";; Original SKK dictionary file: "
350 (file-relative-name (expand-file-name filename) dirname) 352 (file-relative-name (expand-file-name filename) dirname)
351 "\n\n" 353 "\n\n"
diff --git a/make-dist b/make-dist
index 80c672dbf3a..57881d50f0d 100755
--- a/make-dist
+++ b/make-dist
@@ -357,6 +357,7 @@ possibly_non_vc_files="
357 MANIFEST aclocal.m4 configure 357 MANIFEST aclocal.m4 configure
358 admin/charsets/jisx2131-filter 358 admin/charsets/jisx2131-filter
359 src/config.in 359 src/config.in
360 leim/small-ja-dic-option
360"$( 361"$(
361 find admin doc etc lisp \ 362 find admin doc etc lisp \
362 \( -name '*.el' -o -name '*.elc' -o -name '*.map' -o -name '*.stamp' \ 363 \( -name '*.el' -o -name '*.elc' -o -name '*.map' -o -name '*.stamp' \