Mercurial > emacs
annotate admin/unidata/makefile.w32-in @ 91617:431b8edb4f39
Use "do...while (0)", not "if (1)..else" in macro definitions.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Thu, 07 Feb 2008 12:46:29 +0000 |
parents | 67e3af8e0a49 |
children | b3be38e00c57 |
rev | line source |
---|---|
91453 | 1 # makefile.w32-in -- W32 -*- Makefile -*- to generate character property tables. |
2 # Copyright (C) 2005, 2006, 2007, 2008 | |
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 | |
10 # the Free Software Foundation; either version 3, or (at your option) | |
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 | |
20 # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
21 # Boston, MA 02110-1301, USA. | |
22 | |
23 EMACS = ../../src/$(BLD)/emacs.exe | |
24 DSTDIR = ../../lisp/international | |
25 EMACSLOADPATH = $(CURDIR)/../../lisp | |
26 # Quote EMACS so it could be a file name with embedded whitespace | |
27 RUNEMACS = "$(EMACS)" -Q --multibyte -batch | |
28 | |
29 all: $(DSTDIR)/charprop.el | |
30 | |
31 .el.elc: | |
32 $(RUNEMACS) -f batch-byte-compile $< | |
33 | |
34 unidata.txt: UnicodeData.txt | |
91511
67e3af8e0a49
(unidata.txt): Use ARGQUOTE and DQUOTE macros.
Jason Rumney <jasonr@gnu.org>
parents:
91472
diff
changeset
|
35 sed -e \ |
67e3af8e0a49
(unidata.txt): Use ARGQUOTE and DQUOTE macros.
Jason Rumney <jasonr@gnu.org>
parents:
91472
diff
changeset
|
36 $(ARGQUOTE)s/\([^;]*\);\(.*\)/(#x\1 $(DQUOTE)\2$(DQUOTE))/$(ARGQUOTE)\ |
67e3af8e0a49
(unidata.txt): Use ARGQUOTE and DQUOTE macros.
Jason Rumney <jasonr@gnu.org>
parents:
91472
diff
changeset
|
37 -e $(ARGQUOTE)s/;/$(DQUOTE) $(DQUOTE)/g$(ARGQUOTE) < $< > $@ |
91453 | 38 |
39 charprop-SH: unidata-gen.elc unidata.txt | |
40 ELC=$(CURDIR)/unidata-gen.elc; \ | |
41 DATA=$(CURDIR)/unidata.txt; \ | |
42 cd $(DSTDIR); \ | |
43 $(RUNEMACS) --load $${ELC} -f unidata-gen-files $${DATA} | |
44 | |
45 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
|
46 $(RUNEMACS) --eval $(ARGQUOTE)(cd $(DQUOTE)$(DSTDIR)$(DQUOTE))$(ARGQUOTE) --load $(CURDIR)/unidata-gen.elc -f unidata-gen-files $(CURDIR)/unidata.txt |
91453 | 47 |
48 ${DSTDIR}/charprop.el: charprop-$(SHELLTYPE) | |
49 | |
50 clean: | |
51 - $(DEL) unidata-gen.elc unidata.txt | |
52 |