Commit | Line | Data |
---|---|---|
f600cf3a | 1 | # Makefile -- Makefile to generate character property tables. |
835a3da7 | 2 | # Copyright (C) 2005, 2006, 2007, 2008 |
f600cf3a KH |
3 | # National Institute of Advanced Industrial Science and Technology (AIST) |
4 | # Registration Number H13PRO009 | |
5 | # | |
6 | # This file is part of GNU Emacs. | |
7 | ||
9ad5de0c | 8 | # GNU Emacs is free software: you can redistribute it and/or modify |
f600cf3a | 9 | # it under the terms of the GNU General Public License as published by |
9ad5de0c GM |
10 | # the Free Software Foundation, either version 3 of the License, or |
11 | # (at your option) any later version. | |
f600cf3a KH |
12 | |
13 | # GNU Emacs is distributed in the hope that it will be useful, | |
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | # GNU General Public License for more details. | |
17 | ||
18 | # You should have received a copy of the GNU General Public License | |
9ad5de0c GM |
19 | # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
20 | ||
f600cf3a | 21 | |
f23df5a0 | 22 | EMACS = ../../src/emacs |
f600cf3a | 23 | DSTDIR = ../../lisp/international |
f23df5a0 | 24 | RUNEMACS = ${EMACS} -Q --multibyte -batch |
f600cf3a | 25 | |
f23df5a0 | 26 | all: ${DSTDIR}/charprop.el |
f600cf3a | 27 | |
f23df5a0 KH |
28 | .el.elc: |
29 | ${RUNEMACS} -batch -f batch-byte-compile $< | |
f600cf3a | 30 | |
4c452d71 | 31 | unidata.txt: UnicodeData.txt |
8a7619ba | 32 | sed -e 's/\([^;]*\);\(.*\)/(#x\1 "\2")/' -e 's/;/" "/g' < UnicodeData.txt > $@ |
4c452d71 | 33 | |
f23df5a0 KH |
34 | ${DSTDIR}/charprop.el: unidata-gen.elc unidata.txt |
35 | ELC=`/bin/pwd`/unidata-gen.elc; \ | |
36 | DATA=`/bin/pwd`/unidata.txt; \ | |
37 | cd ${DSTDIR}; \ | |
38 | ${RUNEMACS} -batch --load $${ELC} -f unidata-gen-files $${DATA} | |
f600cf3a KH |
39 | |
40 | install: charprop.el | |
41 | cp charprop.el ${DSTDIR} | |
42 | cp `sed -n 's/^;; FILE: //p' < charprop.el` ${DSTDIR} | |
43 | ||
44 | clean: | |
45 | if test -f charprop.el; then \ | |
46 | rm -f `sed -n 's/^;; FILE: //p' < charprop.el`; \ | |
47 | fi | |
4c452d71 | 48 | rm -f charprop.el unidata-gen.elc unidata.txt |