3 # Copyright (C) 2012-2017 Free Software Foundation, Inc.
5 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011
6 # National Institute of Advanced Industrial Science and Technology (AIST)
7 # Registration Number H13PRO009
9 # This file is part of GNU Emacs.
11 # GNU Emacs is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation, either version 3 of the License, or
14 # (at your option) any later version.
16 # GNU Emacs is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
21 # You should have received a copy of the GNU General Public License
22 # along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
29 top_srcdir
= @top_srcdir@
30 top_builddir
= @top_builddir@
32 EMACS
= ${top_builddir}/src
/emacs
33 unidir
= ${top_srcdir}/lisp
/international
34 emacs
= "${EMACS}" -batch
--no-site-file
--no-site-lisp
37 unifiles
= $(addprefix ${unidir}/,$(sort $(shell sed
-n
's/^[ \t][ \t]*${lparen}"\(uni-[^"]*\)"$$/\1/p' ${srcdir}/unidata-gen.el
)))
40 AM_DEFAULT_VERBOSITY
= @AM_DEFAULT_VERBOSITY@
42 AM_V_ELC
= $(am__v_ELC_@AM_V@
)
43 am__v_ELC_
= $(am__v_ELC_@AM_DEFAULT_V@
)
44 am__v_ELC_0
= @echo
" ELC " $@
;
47 AM_V_GEN
= $(am__v_GEN_@AM_V@
)
48 am__v_GEN_
= $(am__v_GEN_@AM_DEFAULT_V@
)
49 am__v_GEN_0
= @echo
" GEN " $@
;
52 AM_V_at
= $(am__v_at_@AM_V@
)
53 am__v_at_
= $(am__v_at_@AM_DEFAULT_V@
)
59 all: ${top_srcdir}/src
/macuvs.h
${unifiles} ${unidir}/charscript.el \
62 ## Specify .elc as an order-only prereq so as to not needlessly rebuild
63 ## target just because the .elc is missing.
64 ## Same with charprop.el below.
65 ${top_srcdir}/src
/macuvs.h
: ${srcdir}/uvs.el
${srcdir}/IVD_Sequences.txt | \
67 $(AM_V_GEN
)${emacs} -L
${srcdir} -l uvs \
68 --eval
'(uvs-print-table-ivd (unmsys--file-name "${srcdir}/IVD_Sequences.txt") "Adobe-Japan1")' \
72 $(AM_V_ELC
)${emacs} -f batch-byte-compile
$<
74 unidata.txt
: ${srcdir}/UnicodeData.txt
75 $(AM_V_GEN
)sed
-e
's/\([^;]*\);\(.*\)/(#x\1 "\2")/' -e
's/;/" "/g' \
78 ## charprop doesn't actually depend on unifiles, but for now at least
79 ## pretend that it does since other Makefiles assume that if charprop
80 ## is up-to-date, the unifiles are too.
81 ${unidir}/charprop.el
: ${unifiles} ${srcdir}/unidata-gen.el |
${srcdir}/unidata-gen.elc
82 $(AM_V_at
)[ ! -f
$@
] || chmod
+w
$@
83 $(AM_V_GEN
)${emacs} -L
${srcdir} -l unidata-gen \
84 -f unidata-gen-charprop
$@
86 ${unifiles}: ${srcdir}/unidata-gen.el \
87 ${srcdir}/UnicodeData.txt
${srcdir}/BidiMirroring.txt \
88 ${srcdir}/BidiBrackets.txt | \
89 ${srcdir}/unidata-gen.elc unidata.txt
90 $(AM_V_at
)[ ! -f
$@
] || chmod
+w
$@
91 $(AM_V_GEN
)${emacs} -L
${srcdir} -l unidata-gen \
92 -f unidata-gen-file
$@
${srcdir}
96 charscript.el
: ${unidir}/charscript.el
98 blocks
= ${srcdir}/blocks.awk
100 ${unidir}/charscript.el
: ${srcdir}/Blocks.txt
${blocks}
101 $(AM_V_GEN
)$(AWK
) -f
${blocks} < $< > $@
104 .PHONY
: clean bootstrap-clean
distclean maintainer-clean extraclean
107 rm -f
${srcdir}/*.elc unidata.txt
109 bootstrap-clean
: clean
114 maintainer-clean
: distclean
116 ## Do not remove these files, even in a bootstrap, because they rarely
117 ## change and it slows down bootstrap (a tiny bit).
118 ## Cf leim/ja-dic (which is much slower).
120 rm -f
${top_srcdir}/src
/macuvs.h
${unidir}/charscript.el
*
121 rm -f
${unifiles} ${unidir}/charprop.el