Mercurial > emacs
annotate admin/unidata/makefile.w32-in @ 104813:ef2bed7361b2
*** empty log message ***
author | Carsten Dominik <dominik@science.uva.nl> |
---|---|
date | Wed, 02 Sep 2009 13:08:31 +0000 |
parents | ce88a631c161 |
children | 1d1d5d9bd884 |
rev | line source |
---|---|
91453 | 1 # makefile.w32-in -- W32 -*- Makefile -*- to generate character property tables. |
100971 | 2 # Copyright (C) 2005, 2006, 2007, 2008, 2009 |
91453 | 3 # National Institute of Advanced Industrial Science and Technology (AIST) |
4 # Registration Number H13PRO009 | |
5 # | |
6 # This file is part of GNU Emacs. | |
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 | 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 | 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 | |
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 | 21 |
22 EMACS = ../../src/$(BLD)/emacs.exe | |
23 DSTDIR = ../../lisp/international | |
91692 | 24 lisp = $(CURDIR)/../../lisp |
25 # EMACSLOADPATH should include international, so Emacs finds encoded-kb. | |
26 # It should include emacs-lisp, so Emacs finds bytecomp. This is because | |
27 # lisp/subdirs.el is not generated yet when the commands below run. | |
28 EMACSLOADPATH = $(lisp);$(lisp)/international;$(lisp)/emacs-lisp | |
91453 | 29 # Quote EMACS so it could be a file name with embedded whitespace |
30 RUNEMACS = "$(EMACS)" -Q --multibyte -batch | |
31 | |
32 all: $(DSTDIR)/charprop.el | |
33 | |
34 .el.elc: | |
35 $(RUNEMACS) -f batch-byte-compile $< | |
36 | |
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 | 41 |
42 charprop-SH: unidata-gen.elc unidata.txt | |
43 ELC=$(CURDIR)/unidata-gen.elc; \ | |
44 DATA=$(CURDIR)/unidata.txt; \ | |
45 cd $(DSTDIR); \ | |
46 $(RUNEMACS) --load $${ELC} -f unidata-gen-files $${DATA} | |
47 | |
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 | 50 |
51 ${DSTDIR}/charprop.el: charprop-$(SHELLTYPE) | |
52 | |
53 clean: | |
54 - $(DEL) unidata-gen.elc unidata.txt | |
55 |