Note combine-and-quote-strings doesn't shell quote
[emacs.git] / admin / unidata / Makefile.in
blobd46420d0a3c8792c4eab49cdbb79d6adf9a77e90
1 ### @configure_input@
3 # Copyright (C) 2012-2016 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 <http://www.gnu.org/licenses/>.
24 SHELL = @SHELL@
26 AWK = @AWK@
28 srcdir = @srcdir@
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
36 # 'make' verbosity.
37 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
39 AM_V_ELC = $(am__v_ELC_@AM_V@)
40 am__v_ELC_ = $(am__v_ELC_@AM_DEFAULT_V@)
41 am__v_ELC_0 = @echo " ELC " $@;
42 am__v_ELC_1 =
44 AM_V_GEN = $(am__v_GEN_@AM_V@)
45 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
46 am__v_GEN_0 = @echo " GEN " $@;
47 am__v_GEN_1 =
49 AM_V_at = $(am__v_at_@AM_V@)
50 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
51 am__v_at_0 = @
52 am__v_at_1 =
54 .PHONY: all unifiles
56 all: ${top_srcdir}/src/macuvs.h unifiles ${unidir}/charscript.el
58 ## Specify .elc as an order-only prereq so as to not needlessly rebuild
59 ## target just because the .elc is missing.
60 ## Same with charprop.el below.
61 ${top_srcdir}/src/macuvs.h: ${srcdir}/uvs.el ${srcdir}/IVD_Sequences.txt | \
62 ${srcdir}/uvs.elc
63 $(AM_V_GEN)${emacs} -L ${srcdir} -l uvs \
64 --eval '(uvs-print-table-ivd (unmsys--file-name "${srcdir}/IVD_Sequences.txt") "Adobe-Japan1")' \
65 > $@
67 %.elc: %.el
68 $(AM_V_ELC)${emacs} -f batch-byte-compile $<
70 unidata.txt: ${srcdir}/UnicodeData.txt
71 $(AM_V_GEN)sed -e 's/\([^;]*\);\(.*\)/(#x\1 "\2")/' -e 's/;/" "/g' \
72 < $< > $@
74 PHONY_EXTRAS =
75 .PHONY: $(PHONY_EXTRAS)
77 ${unidir}/charprop.el: ${srcdir}/unidata-gen.el \
78 ${srcdir}/UnicodeData.txt ${srcdir}/BidiMirroring.txt \
79 ${srcdir}/BidiBrackets.txt | \
80 ${srcdir}/unidata-gen.elc unidata.txt
81 ifneq (,$(wildcard $@))
82 $(AM_V_at)cd $(unidir) && \
83 for f in charprop.el `sed -n 's/^;; FILE: //p' < charprop.el`; do \
84 [ ! -f $$f ] || [ -w $$f ] || chmod +w $$f || exit; \
85 done
86 endif
87 $(AM_V_GEN)${emacs} -L ${srcdir} -l unidata-gen -f unidata-gen-files \
88 ${srcdir} "${unidir}"
90 ## Check for deleted uni- files, and if any such, force a rebuild.
91 ## Perhaps a more elegant way would be for the previous rule
92 ## to generate a Makefile fragment explicitly listing the uni- files,
93 ## which this file could include. If no fragment, rebuild everything.
94 unifiles: ${unidir}/charprop.el
95 $(AM_V_at)for f in `sed -n 's/^;; FILE: //p' < $<`; do \
96 [ -f $(unidir)/$$f ] || exec $(MAKE) PHONY_EXTRAS=$< $<; \
97 done
100 .PHONY: charscript.el
101 charscript.el: ${unidir}/charscript.el
103 blocks = ${srcdir}/blocks.awk
105 ${unidir}/charscript.el: ${srcdir}/Blocks.txt ${blocks}
106 $(AM_V_GEN)$(AWK) -f ${blocks} < $< > $@
109 .PHONY: clean bootstrap-clean distclean maintainer-clean extraclean
111 clean:
112 rm -f ${srcdir}/*.elc unidata.txt
114 bootstrap-clean: clean
116 distclean: clean
117 rm -f Makefile
119 maintainer-clean: distclean
121 ## Do not remove these files, even in a bootstrap, because they rarely
122 ## change and it slows down bootstrap (a tiny bit).
123 ## Cf leim/ja-dic (which is much slower).
124 extraclean:
125 rm -f ${top_srcdir}/src/macuvs.h ${unidir}/charscript.el*
126 ifneq (,$(wildcard $(unidir)/charprop.el))
127 cd $(unidir) && \
128 rm -f `sed -n 's/^;; FILE: //p' < charprop.el` charprop.el
129 endif