disable byte-compilation
[bpt/emacs.git] / admin / unidata / Makefile.in
1 ### @configure_input@
2
3 # Copyright (C) 2012-2014 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/temacs
31 DSTDIR = ${top_srcdir}/lisp/international
32 emacs = "${EMACS}" -batch --no-site-file --no-site-lisp
33
34 .PHONY: all compile install
35
36 all: ${top_srcdir}/src/macuvs.h ${DSTDIR}/charprop.el
37
38 ${top_srcdir}/src/macuvs.h: ${srcdir}/uvs.el ${srcdir}/IVD_Sequences.txt
39 ${emacs} -L ${srcdir} -l uvs \
40 --eval '(uvs-print-table-ivd "${srcdir}/IVD_Sequences.txt" "Adobe-Japan1")' \
41 > $@
42
43 unidata.txt: ${srcdir}/UnicodeData.txt
44 sed -e 's/\([^;]*\);\(.*\)/(#x\1 "\2")/' -e 's/;/" "/g' < $< > $@
45
46 ${DSTDIR}/charprop.el: ${srcdir}/unidata-gen.el ${srcdir}/UnicodeData.txt | \
47 unidata.txt
48 -if [ -f "$@" ]; then \
49 cd ${DSTDIR} && chmod +w charprop.el `sed -n 's/^;; FILE: //p' < charprop.el`; \
50 fi
51 ${emacs} -L ${srcdir} -l unidata-gen -f unidata-gen-files \
52 ${srcdir} "${DSTDIR}"
53
54 ## Like the above, but generate in PWD rather than lisp/international.
55 charprop.el: ${srcdir}/unidata-gen.el unidata.txt
56 ${emacs} -L ${srcdir} -l unidata-gen -f unidata-gen-files \
57 ${srcdir}
58
59 .PHONY: clean bootstrap-clean distclean maintainer-clean extraclean
60
61 install: charprop.el
62 cp charprop.el ${DSTDIR}
63 cp `sed -n 's/^;; FILE: //p' < charprop.el` ${DSTDIR}
64
65 clean:
66 if test -f charprop.el; then \
67 rm -f `sed -n 's/^;; FILE: //p' < charprop.el`; \
68 fi
69 rm -f charprop.el ${srcdir}/*.elc unidata.txt
70
71 bootstrap-clean: clean
72
73 distclean: clean
74 rm -f Makefile
75
76 maintainer-clean: distclean
77
78 ## Do not remove these files, even in a bootstrap, because they rarely
79 ## change and it slows down bootstrap (a tiny bit).
80 ## Cf leim/ja-dic (which is much slower).
81 extraclean:
82 rm -f ${top_srcdir}/src/macuvs.h
83 if test -f ${DSTDIR}/charprop.el; then \
84 (cd ${DSTDIR} && rm -f `sed -n 's/^;; FILE: //p' < charprop.el`); \
85 rm -f ${DSTDIR}/charprop.el; \
86 fi