annotate admin/unidata/makefile.w32-in @ 111233:d86e0c3de741

merge trunk
author Kenichi Handa <handa@m17n.org>
date Thu, 14 Oct 2010 16:21:40 +0900
parents ce960720ed3f
children 417b1e4d63cd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
91453
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
1 # makefile.w32-in -- W32 -*- Makefile -*- to generate character property tables.
106815
1d1d5d9bd884 Add 2010 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 100971
diff changeset
2 # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010
91453
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
3 # National Institute of Advanced Industrial Science and Technology (AIST)
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
4 # Registration Number H13PRO009
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
5 #
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
6 # This file is part of GNU Emacs.
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
7
94829
aeac1d771ae4 Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 91874
diff changeset
8 # GNU Emacs is free software: you can redistribute it and/or modify
91453
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
9 # it under the terms of the GNU General Public License as published by
94829
aeac1d771ae4 Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 91874
diff changeset
10 # the Free Software Foundation, either version 3 of the License, or
aeac1d771ae4 Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 91874
diff changeset
11 # (at your option) any later version.
91453
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
12
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
13 # GNU Emacs is distributed in the hope that it will be useful,
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
16 # GNU General Public License for more details.
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
17
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
18 # You should have received a copy of the GNU General Public License
94829
aeac1d771ae4 Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 91874
diff changeset
19 # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
aeac1d771ae4 Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 91874
diff changeset
20
91453
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
21
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
22 EMACS = ../../src/$(BLD)/emacs.exe
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
23 DSTDIR = ../../lisp/international
91692
b3be38e00c57 (lisp): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 91511
diff changeset
24 lisp = $(CURDIR)/../../lisp
b3be38e00c57 (lisp): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 91511
diff changeset
25 # EMACSLOADPATH should include international, so Emacs finds encoded-kb.
b3be38e00c57 (lisp): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 91511
diff changeset
26 # It should include emacs-lisp, so Emacs finds bytecomp. This is because
b3be38e00c57 (lisp): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 91511
diff changeset
27 # lisp/subdirs.el is not generated yet when the commands below run.
b3be38e00c57 (lisp): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 91511
diff changeset
28 EMACSLOADPATH = $(lisp);$(lisp)/international;$(lisp)/emacs-lisp
91453
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
29 # Quote EMACS so it could be a file name with embedded whitespace
109956
ce960720ed3f Make obsolete --unibyte argument do nothing (Bug#6886).
Chong Yidong <cyd@stupidchicken.com>
parents: 108983
diff changeset
30 RUNEMACS = "$(EMACS)" -Q -batch
91453
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
31
108983
7e588bac2220 Use BidiMirroring.txt for mirroring characters in bidi context.
Eli Zaretskii <eliz@gnu.org>
parents: 108982
diff changeset
32 all: $(DSTDIR)/charprop.el ../../src/biditype.h ../../src/bidimirror.h
91453
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
33
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
34 .el.elc:
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
35 $(RUNEMACS) -f batch-byte-compile $<
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
36
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
37 unidata.txt: UnicodeData.txt
91511
67e3af8e0a49 (unidata.txt): Use ARGQUOTE and DQUOTE macros.
Jason Rumney <jasonr@gnu.org>
parents: 91472
diff changeset
38 sed -e \
67e3af8e0a49 (unidata.txt): Use ARGQUOTE and DQUOTE macros.
Jason Rumney <jasonr@gnu.org>
parents: 91472
diff changeset
39 $(ARGQUOTE)s/\([^;]*\);\(.*\)/(#x\1 $(DQUOTE)\2$(DQUOTE))/$(ARGQUOTE)\
91874
c05481b64567 (unidata.txt): Don't use $<, it's non-portable in this context.
Eli Zaretskii <eliz@gnu.org>
parents: 91692
diff changeset
40 -e $(ARGQUOTE)s/;/$(DQUOTE) $(DQUOTE)/g$(ARGQUOTE) < UnicodeData.txt > $@
91453
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
41
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
42 charprop-SH: unidata-gen.elc unidata.txt
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
43 ELC=$(CURDIR)/unidata-gen.elc; \
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
44 DATA=$(CURDIR)/unidata.txt; \
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
45 cd $(DSTDIR); \
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
46 $(RUNEMACS) --load $${ELC} -f unidata-gen-files $${DATA}
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
47
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
48 charprop-CMD: unidata-gen.elc unidata.txt
91472
93fcec3a4fd7 (charprop-CMD): Chdir in Emacs rather than in Makefile.
Eli Zaretskii <eliz@gnu.org>
parents: 91467
diff changeset
49 $(RUNEMACS) --eval $(ARGQUOTE)(cd $(DQUOTE)$(DSTDIR)$(DQUOTE))$(ARGQUOTE) --load $(CURDIR)/unidata-gen.elc -f unidata-gen-files $(CURDIR)/unidata.txt
91453
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
50
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
51 ${DSTDIR}/charprop.el: charprop-$(SHELLTYPE)
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
52
108982
99288c087e4b Derive bidi type table from UnicodeData.txt.
Eli Zaretskii <eliz@gnu.org>
parents: 106815
diff changeset
53 ../../src/biditype.h: UnicodeData.txt
99288c087e4b Derive bidi type table from UnicodeData.txt.
Eli Zaretskii <eliz@gnu.org>
parents: 106815
diff changeset
54 gawk -F";" -f biditype.awk -v BINMODE=2 $< > biditype.h
108983
7e588bac2220 Use BidiMirroring.txt for mirroring characters in bidi context.
Eli Zaretskii <eliz@gnu.org>
parents: 108982
diff changeset
55 $(CP) biditype.h $@
108982
99288c087e4b Derive bidi type table from UnicodeData.txt.
Eli Zaretskii <eliz@gnu.org>
parents: 106815
diff changeset
56 $(DEL) biditype.h
99288c087e4b Derive bidi type table from UnicodeData.txt.
Eli Zaretskii <eliz@gnu.org>
parents: 106815
diff changeset
57
108983
7e588bac2220 Use BidiMirroring.txt for mirroring characters in bidi context.
Eli Zaretskii <eliz@gnu.org>
parents: 108982
diff changeset
58 ../../src/bidimirror.h: BidiMirroring.txt
7e588bac2220 Use BidiMirroring.txt for mirroring characters in bidi context.
Eli Zaretskii <eliz@gnu.org>
parents: 108982
diff changeset
59 gawk -F"[; ]+" -f bidimirror.awk -v BINMODE=2 $< > bidimirror.h
7e588bac2220 Use BidiMirroring.txt for mirroring characters in bidi context.
Eli Zaretskii <eliz@gnu.org>
parents: 108982
diff changeset
60 $(CP) bidimirror.h $@
7e588bac2220 Use BidiMirroring.txt for mirroring characters in bidi context.
Eli Zaretskii <eliz@gnu.org>
parents: 108982
diff changeset
61 $(DEL) bidimirror.h
7e588bac2220 Use BidiMirroring.txt for mirroring characters in bidi context.
Eli Zaretskii <eliz@gnu.org>
parents: 108982
diff changeset
62
91453
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
63 clean:
108983
7e588bac2220 Use BidiMirroring.txt for mirroring characters in bidi context.
Eli Zaretskii <eliz@gnu.org>
parents: 108982
diff changeset
64 - $(DEL) unidata-gen.elc unidata.txt biditype.h bidimirror.h
91453
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
65