(unidata.txt): Don't use $<, it's non-portable in this context.
[bpt/emacs.git] / admin / unidata / Makefile.in
CommitLineData
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
8# GNU Emacs is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
835a3da7 10# the Free Software Foundation; either version 3, or (at your option)
f600cf3a
KH
11# any later version.
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
19# along with GNU Emacs; see the file COPYING. If not, write to the
835a3da7
GM
20# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21# Boston, MA 02110-1301, USA.
f600cf3a 22
f23df5a0 23EMACS = ../../src/emacs
f600cf3a 24DSTDIR = ../../lisp/international
f23df5a0 25RUNEMACS = ${EMACS} -Q --multibyte -batch
f600cf3a 26
f23df5a0 27all: ${DSTDIR}/charprop.el
f600cf3a 28
f23df5a0
KH
29.el.elc:
30 ${RUNEMACS} -batch -f batch-byte-compile $<
f600cf3a 31
4c452d71 32unidata.txt: UnicodeData.txt
8a7619ba 33 sed -e 's/\([^;]*\);\(.*\)/(#x\1 "\2")/' -e 's/;/" "/g' < UnicodeData.txt > $@
4c452d71 34
f23df5a0
KH
35${DSTDIR}/charprop.el: unidata-gen.elc unidata.txt
36 ELC=`/bin/pwd`/unidata-gen.elc; \
37 DATA=`/bin/pwd`/unidata.txt; \
38 cd ${DSTDIR}; \
39 ${RUNEMACS} -batch --load $${ELC} -f unidata-gen-files $${DATA}
f600cf3a
KH
40
41install: charprop.el
42 cp charprop.el ${DSTDIR}
43 cp `sed -n 's/^;; FILE: //p' < charprop.el` ${DSTDIR}
44
45clean:
46 if test -f charprop.el; then \
47 rm -f `sed -n 's/^;; FILE: //p' < charprop.el`; \
48 fi
4c452d71 49 rm -f charprop.el unidata-gen.elc unidata.txt