diff options
| author | Eli Zaretskii | 2023-09-24 15:30:01 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2023-09-24 15:30:01 +0300 |
| commit | 7d5fee0feaa5740f3fbbfc6d5f13855bf58b9c25 (patch) | |
| tree | 739733890723c3dfcb1b04ce8ffc256094c3d862 | |
| parent | ead491d230721e6c12c849878cdcd2890cb0454b (diff) | |
| download | emacs-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-- | .gitignore | 1 | ||||
| -rw-r--r-- | leim/Makefile.in | 9 | ||||
| -rw-r--r-- | lisp/international/ja-dic-cnv.el | 2 | ||||
| -rwxr-xr-x | make-dist | 1 |
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 | |||
| 95 | lisp/eshell/esh-groups.el | 95 | lisp/eshell/esh-groups.el |
| 96 | lisp/finder-inf.el | 96 | lisp/finder-inf.el |
| 97 | lisp/leim/ja-dic/ | 97 | lisp/leim/ja-dic/ |
| 98 | leim/small-ja-dic-option | ||
| 98 | lisp/leim/leim-list.el | 99 | lisp/leim/leim-list.el |
| 99 | lisp/leim/quail/4Corner.el | 100 | lisp/leim/quail/4Corner.el |
| 100 | lisp/leim/quail/ARRAY30.el | 101 | lisp/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. |
| 27 | srcdir=@srcdir@ | 27 | srcdir=@srcdir@ |
| 28 | top_builddir = @top_builddir@ | 28 | top_builddir = @top_builddir@ |
| 29 | top_srcdir = @top_srcdir@ | ||
| 29 | 30 | ||
| 30 | # Where the generated files go. | 31 | # Where the generated files go. |
| 31 | leimdir = ${srcdir}/../lisp/leim | 32 | leimdir = ${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. | ||
| 140 | small-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 |
| 138 | generate-ja-dic: ${leimdir}/ja-dic/ja-dic.el | 145 | generate-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" |
| @@ -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' \ |