summaryrefslogtreecommitdiff
path: root/leim
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2023-09-24 15:30:01 +0300
committerEli Zaretskii <eliz@gnu.org>2023-09-24 15:30:01 +0300
commit7d5fee0feaa5740f3fbbfc6d5f13855bf58b9c25 (patch)
tree739733890723c3dfcb1b04ce8ffc256094c3d862 /leim
parentead491d230721e6c12c849878cdcd2890cb0454b (diff)
downloademacs-7d5fee0feaa5740f3fbbfc6d5f13855bf58b9c25.tar.gz
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'.
Diffstat (limited to 'leim')
-rw-r--r--leim/Makefile.in9
1 files changed, 8 insertions, 1 deletions
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@
# Here are the things that we expect ../configure to edit.
srcdir=@srcdir@
top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
# Where the generated files go.
leimdir = ${srcdir}/../lisp/leim
@@ -134,9 +135,15 @@ ${leimdir}/leim-list.el: ${srcdir}/leim-ext.el ${TIT_MISC}
${leimdir}/ja-dic/ja-dic.el: | $(leimdir)/ja-dic
+# This is used to support regeneration of ja-dic when the SMALL_JA_DIC
+# option is flipped by the configure-time option.
+small-ja-dic-option: ../config.status
+ $(AM_V_GEN)echo "Small ja-dic option: $(SMALL_JA_DIC)" > $@.$$$$ && \
+ ${top_srcdir}/build-aux/move-if-change $@.$$$$ $@
+
.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
+${leimdir}/ja-dic/ja-dic.el: $(srcdir)/SKK-DIC/SKK-JISYO.L small-ja-dic-option
$(AM_V_GEN)$(RUN_EMACS) -batch -l ja-dic-cnv \
-f batch-skkdic-convert -dir "$(leimdir)/ja-dic" $(JA_DIC_NO_REDUCTION_OPTION) "$<"