Makefile.in 1.64 KB
Newer Older
Kenichi Handa's avatar
Kenichi Handa committed
1
# Makefile -- Makefile to generate character property tables.
2
# Copyright (C) 2005, 2006, 2007, 2008
Kenichi Handa's avatar
Kenichi Handa committed
3 4 5 6 7 8 9
#   National Institute of Advanced Industrial Science and Technology (AIST)
#   Registration Number H13PRO009
#
# This file is part of GNU Emacs.

# GNU Emacs is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
10
# the Free Software Foundation; either version 3, or (at your option)
Kenichi Handa's avatar
Kenichi Handa committed
11 12 13 14 15 16 17 18 19
# any later version.

# GNU Emacs is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with GNU Emacs; see the file COPYING.  If not, write to the
20 21
# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
Kenichi Handa's avatar
Kenichi Handa committed
22

23
EMACS = ../../src/emacs
Kenichi Handa's avatar
Kenichi Handa committed
24
DSTDIR = ../../lisp/international
25
RUNEMACS = ${EMACS} -Q --multibyte -batch
Kenichi Handa's avatar
Kenichi Handa committed
26

27
all: ${DSTDIR}/charprop.el
Kenichi Handa's avatar
Kenichi Handa committed
28

29 30
.el.elc:
	${RUNEMACS} -batch -f batch-byte-compile $<
Kenichi Handa's avatar
Kenichi Handa committed
31

Kenichi Handa's avatar
Kenichi Handa committed
32 33 34
unidata.txt: UnicodeData.txt
	sed -e 's/\([^;]*\);\(.*\)/(#x\1 "\2")/' -e 's/;/" "/g' < $< > $@

35 36 37 38 39
${DSTDIR}/charprop.el: unidata-gen.elc unidata.txt
	ELC=`/bin/pwd`/unidata-gen.elc; \
	DATA=`/bin/pwd`/unidata.txt; \
	cd ${DSTDIR}; \
	${RUNEMACS} -batch --load $${ELC} -f unidata-gen-files $${DATA}
Kenichi Handa's avatar
Kenichi Handa committed
40 41 42 43 44 45 46 47 48

install: charprop.el
	cp charprop.el ${DSTDIR}
	cp `sed -n 's/^;; FILE: //p' < charprop.el` ${DSTDIR}

clean:
	if test -f charprop.el; then \
	  rm -f `sed -n 's/^;; FILE: //p' < charprop.el`; \
	fi
Kenichi Handa's avatar
Kenichi Handa committed
49
	rm -f charprop.el unidata-gen.elc unidata.txt