annotate admin/unidata/makefile.w32-in @ 93824:217fd7a2dc38

(mail-source-value): Prefer fboundp to functionp so it works with macros as well.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Mon, 07 Apr 2008 16:03:31 +0000
parents c05481b64567
children aeac1d771ae4
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.
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
2 # Copyright (C) 2005, 2006, 2007, 2008
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
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
8 # GNU Emacs is free software; you can redistribute it and/or modify
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
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
10 # the Free Software Foundation; either version 3, or (at your option)
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
11 # any later version.
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
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
19 # along with GNU Emacs; see the file COPYING. If not, write to the
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
20 # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
21 # Boston, MA 02110-1301, USA.
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
22
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
23 EMACS = ../../src/$(BLD)/emacs.exe
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
24 DSTDIR = ../../lisp/international
91692
b3be38e00c57 (lisp): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 91511
diff changeset
25 lisp = $(CURDIR)/../../lisp
b3be38e00c57 (lisp): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 91511
diff changeset
26 # EMACSLOADPATH should include international, so Emacs finds encoded-kb.
b3be38e00c57 (lisp): New variable.
Eli Zaretskii <eliz@gnu.org>
parents: 91511
diff changeset
27 # 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
28 # 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
29 EMACSLOADPATH = $(lisp);$(lisp)/international;$(lisp)/emacs-lisp
91453
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
30 # Quote EMACS so it could be a file name with embedded whitespace
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
31 RUNEMACS = "$(EMACS)" -Q --multibyte -batch
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
32
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
33 all: $(DSTDIR)/charprop.el
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
34
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
35 .el.elc:
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
36 $(RUNEMACS) -f batch-byte-compile $<
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
37
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
38 unidata.txt: UnicodeData.txt
91511
67e3af8e0a49 (unidata.txt): Use ARGQUOTE and DQUOTE macros.
Jason Rumney <jasonr@gnu.org>
parents: 91472
diff changeset
39 sed -e \
67e3af8e0a49 (unidata.txt): Use ARGQUOTE and DQUOTE macros.
Jason Rumney <jasonr@gnu.org>
parents: 91472
diff changeset
40 $(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
41 -e $(ARGQUOTE)s/;/$(DQUOTE) $(DQUOTE)/g$(ARGQUOTE) < UnicodeData.txt > $@
91453
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
42
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
43 charprop-SH: unidata-gen.elc unidata.txt
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
44 ELC=$(CURDIR)/unidata-gen.elc; \
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
45 DATA=$(CURDIR)/unidata.txt; \
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
46 cd $(DSTDIR); \
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
47 $(RUNEMACS) --load $${ELC} -f unidata-gen-files $${DATA}
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
48
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
49 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
50 $(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
51
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
52 ${DSTDIR}/charprop.el: charprop-$(SHELLTYPE)
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
53
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
54 clean:
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
55 - $(DEL) unidata-gen.elc unidata.txt
72d54cefafff New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
56