Avoid some overfull lines in doc/misc/viper
[emacs.git] / admin / unidata / Makefile.in
blobecbd04902467bf8c46926d9ce7a5435b5a1f63eb
1 # Makefile -- Makefile to generate character property tables.
3 # Copyright (C) 2012 Free Software Foundation, Inc.
5 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011
6 # National Institute of Advanced Industrial Science and Technology (AIST)
7 # Registration Number H13PRO009
9 # This file is part of GNU Emacs.
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.
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.
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/>.
24 SHELL = /bin/sh
26 srcdir = @srcdir@
27 abs_builddir = @abs_builddir@
28 top_srcdir = @top_srcdir@
29 abs_top_builddir = @abs_top_builddir@
31 EMACS = ${abs_top_builddir}/src/emacs
32 DSTDIR = ${top_srcdir}/lisp/international
33 emacs = ${EMACS} -batch --no-site-file --no-site-lisp
35 all: ${DSTDIR}/charprop.el
37 .el.elc:
38 ${emacs} -f batch-byte-compile $<
40 unidata.txt: ${srcdir}/UnicodeData.txt
41 sed -e 's/\([^;]*\);\(.*\)/(#x\1 "\2")/' -e 's/;/" "/g' < ${srcdir}/UnicodeData.txt > $@
43 ${DSTDIR}/charprop.el: ${srcdir}/unidata-gen.elc unidata.txt
44 cd ${DSTDIR} && ${emacs} -l ${srcdir}/unidata-gen \
45 -f unidata-gen-files ${srcdir} ${abs_builddir}/unidata.txt
47 ## Like the above, but generate in PWD rather than lisp/international.
48 charprop.el: ${srcdir}/unidata-gen.elc unidata.txt
49 ${emacs} -l ${srcdir}/unidata-gen \
50 -f unidata-gen-files ${srcdir} unidata.txt
52 install: charprop.el
53 cp charprop.el ${DSTDIR}
54 cp `sed -n 's/^;; FILE: //p' < charprop.el` ${DSTDIR}
56 clean:
57 if test -f charprop.el; then \
58 rm -f `sed -n 's/^;; FILE: //p' < charprop.el`; \
60 rm -f charprop.el ${srcdir}/unidata-gen.elc unidata.txt
62 distclean: clean
63 -rm -f ./Makefile
65 maintainer-clean: distclean