disable byte-compilation
[bpt/emacs.git] / admin / unidata / Makefile.in
CommitLineData
bbece175 1### @configure_input@
a9f72fc1 2
ba318903 3# Copyright (C) 2012-2014 Free Software Foundation, Inc.
a9f72fc1 4
5df4f04c 5# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011
f600cf3a
KH
6# National Institute of Advanced Industrial Science and Technology (AIST)
7# Registration Number H13PRO009
8#
9# This file is part of GNU Emacs.
10
9ad5de0c 11# GNU Emacs is free software: you can redistribute it and/or modify
f600cf3a 12# it under the terms of the GNU General Public License as published by
9ad5de0c
GM
13# the Free Software Foundation, either version 3 of the License, or
14# (at your option) any later version.
f600cf3a
KH
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
9ad5de0c
GM
22# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23
50b13cde 24SHELL = @SHELL@
a9f72fc1
GM
25
26srcdir = @srcdir@
a9f72fc1 27top_srcdir = @top_srcdir@
9835cedb 28top_builddir = @top_builddir@
f600cf3a 29
a908f3e2 30EMACS = ${top_builddir}/src/temacs
a9f72fc1 31DSTDIR = ${top_srcdir}/lisp/international
b8e3b0a9 32emacs = "${EMACS}" -batch --no-site-file --no-site-lisp
f600cf3a 33
7e3bf78c
GM
34.PHONY: all compile install
35
cf2f54c4
PE
36all: ${top_srcdir}/src/macuvs.h ${DSTDIR}/charprop.el
37
a908f3e2 38${top_srcdir}/src/macuvs.h: ${srcdir}/uvs.el ${srcdir}/IVD_Sequences.txt
4c920f37 39 ${emacs} -L ${srcdir} -l uvs \
cf2f54c4
PE
40 --eval '(uvs-print-table-ivd "${srcdir}/IVD_Sequences.txt" "Adobe-Japan1")' \
41 > $@
f600cf3a 42
a9f72fc1 43unidata.txt: ${srcdir}/UnicodeData.txt
4c920f37 44 sed -e 's/\([^;]*\);\(.*\)/(#x\1 "\2")/' -e 's/;/" "/g' < $< > $@
4c452d71 45
4c920f37 46${DSTDIR}/charprop.el: ${srcdir}/unidata-gen.el ${srcdir}/UnicodeData.txt | \
a908f3e2 47 unidata.txt
c2685641
GM
48 -if [ -f "$@" ]; then \
49 cd ${DSTDIR} && chmod +w charprop.el `sed -n 's/^;; FILE: //p' < charprop.el`; \
50 fi
9835cedb
GM
51 ${emacs} -L ${srcdir} -l unidata-gen -f unidata-gen-files \
52 ${srcdir} "${DSTDIR}"
a9f72fc1
GM
53
54## Like the above, but generate in PWD rather than lisp/international.
a908f3e2 55charprop.el: ${srcdir}/unidata-gen.el unidata.txt
9835cedb
GM
56 ${emacs} -L ${srcdir} -l unidata-gen -f unidata-gen-files \
57 ${srcdir}
f600cf3a 58
7e3bf78c
GM
59.PHONY: clean bootstrap-clean distclean maintainer-clean extraclean
60
f600cf3a
KH
61install: charprop.el
62 cp charprop.el ${DSTDIR}
63 cp `sed -n 's/^;; FILE: //p' < charprop.el` ${DSTDIR}
64
65clean:
66 if test -f charprop.el; then \
67 rm -f `sed -n 's/^;; FILE: //p' < charprop.el`; \
68 fi
447892ed 69 rm -f charprop.el ${srcdir}/*.elc unidata.txt
a9f72fc1 70
c20cfd63
GM
71bootstrap-clean: clean
72
a9f72fc1 73distclean: clean
7e3bf78c 74 rm -f Makefile
a9f72fc1 75
c20cfd63 76maintainer-clean: distclean
7e3bf78c
GM
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).
81extraclean:
cf2f54c4 82 rm -f ${top_srcdir}/src/macuvs.h
7e3bf78c
GM
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