]> code.delx.au - gnu-emacs/blob - admin/unidata/Makefile.in
Merge from origin/emacs-24
[gnu-emacs] / admin / unidata / Makefile.in
1 ### @configure_input@
2
3 # Copyright (C) 2012-2015 Free Software Foundation, Inc.
4
5 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011
6 # National Institute of Advanced Industrial Science and Technology (AIST)
7 # Registration Number H13PRO009
8 #
9 # This file is part of GNU Emacs.
10
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.
15
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.
20
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/>.
23
24 SHELL = @SHELL@
25
26 srcdir = @srcdir@
27 top_srcdir = @top_srcdir@
28 top_builddir = @top_builddir@
29
30 EMACS = ${top_builddir}/src/emacs
31 unidir = ${top_srcdir}/lisp/international
32 emacs = "${EMACS}" -batch --no-site-file --no-site-lisp
33
34 # 'make' verbosity.
35 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
36
37 AM_V_ELC = $(am__v_ELC_@AM_V@)
38 am__v_ELC_ = $(am__v_ELC_@AM_DEFAULT_V@)
39 am__v_ELC_0 = @echo " ELC " $@;
40 am__v_ELC_1 =
41
42 AM_V_GEN = $(am__v_GEN_@AM_V@)
43 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
44 am__v_GEN_0 = @echo " GEN " $@;
45 am__v_GEN_1 =
46
47 AM_V_at = $(am__v_at_@AM_V@)
48 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
49 am__v_at_0 = @
50 am__v_at_1 =
51
52 .PHONY: all unifiles
53
54 all: ${top_srcdir}/src/macuvs.h unifiles
55
56 ## Specify .elc as an order-only prereq so as to not needlessly rebuild
57 ## target just because the .elc is missing.
58 ## Same with charprop.el below.
59 ${top_srcdir}/src/macuvs.h: ${srcdir}/uvs.el ${srcdir}/IVD_Sequences.txt | \
60 ${srcdir}/uvs.elc
61 $(AM_V_GEN)${emacs} -L ${srcdir} -l uvs \
62 --eval '(uvs-print-table-ivd (unmsys--file-name "${srcdir}/IVD_Sequences.txt") "Adobe-Japan1")' \
63 > $@
64
65 %.elc: %.el
66 $(AM_V_ELC)${emacs} -f batch-byte-compile $<
67
68 unidata.txt: ${srcdir}/UnicodeData.txt
69 $(AM_V_GEN)sed -e 's/\([^;]*\);\(.*\)/(#x\1 "\2")/' -e 's/;/" "/g' \
70 < $< > $@
71
72 PHONY_EXTRAS =
73 .PHONY: $(PHONY_EXTRAS)
74
75 ${unidir}/charprop.el: ${srcdir}/unidata-gen.el \
76 ${srcdir}/UnicodeData.txt ${srcdir}/BidiMirroring.txt \
77 ${srcdir}/BidiBrackets.txt | \
78 ${srcdir}/unidata-gen.elc unidata.txt
79 ifneq (,$(wildcard $@))
80 $(AM_V_at)cd $(unidir) && \
81 for f in charprop.el `sed -n 's/^;; FILE: //p' < charprop.el`; do \
82 [ ! -f $$f ] || [ -w $$f ] || chmod +w $$f || exit; \
83 done
84 endif
85 $(AM_V_GEN)${emacs} -L ${srcdir} -l unidata-gen -f unidata-gen-files \
86 ${srcdir} "${unidir}"
87
88 ## Check for deleted uni- files, and if any such, force a rebuild.
89 ## Perhaps a more elegant way would be for the previous rule
90 ## to generate a Makefile fragment explicitly listing the uni- files,
91 ## which this file could include. If no fragment, rebuild everything.
92 unifiles: ${unidir}/charprop.el
93 $(AM_V_at)for f in `sed -n 's/^;; FILE: //p' < $<`; do \
94 [ -f $(unidir)/$$f ] || exec $(MAKE) PHONY_EXTRAS=$< $<; \
95 done
96
97 .PHONY: clean bootstrap-clean distclean maintainer-clean extraclean
98
99 clean:
100 rm -f ${srcdir}/*.elc unidata.txt
101
102 bootstrap-clean: clean
103
104 distclean: clean
105 rm -f Makefile
106
107 maintainer-clean: distclean
108
109 ## Do not remove these files, even in a bootstrap, because they rarely
110 ## change and it slows down bootstrap (a tiny bit).
111 ## Cf leim/ja-dic (which is much slower).
112 extraclean:
113 rm -f ${top_srcdir}/src/macuvs.h
114 ifneq (,$(wildcard $(unidir)/charprop.el))
115 cd $(unidir) && \
116 rm -f `sed -n 's/^;; FILE: //p' < charprop.el` charprop.el
117 endif