blob: 35744ad0d5e5de6ed6177a0e26148de520ed1332 [file] [log] [blame]
Marc-André Lemburg68b49ef2005-10-25 11:55:01 +00001#
2# Recreate the Python charmap codecs from the Unicode mapping
3# files available at ftp://ftp.unicode.org/
4#
5#(c) Copyright Marc-Andre Lemburg, 2005.
6# Licensed to PSF under a Contributor Agreement.
7
8# Python binary to use
9PYTHON = python
10
11# Remove tool to use
12RM = /bin/rm
13
14### Generic targets
15
16all: distclean mappings codecs
17
Thomas Wouters49fd7fa2006-04-21 10:40:58 +000018codecs: misc windows iso apple ebcdic custom-mappings cjk
Marc-André Lemburg68b49ef2005-10-25 11:55:01 +000019
20### Mappings
21
22mappings:
23 ncftpget -R ftp.unicode.org . Public/MAPPINGS
24
25### Codecs
26
27build/:
28 mkdir build
29
30misc: build/
31 $(PYTHON) gencodec.py MAPPINGS/VENDORS/MISC/ build/
32 $(RM) build/atarist.*
33 $(RM) build/us_ascii_quotes.*
34 $(RM) build/ibmgraph.*
35 $(RM) build/sgml.*
36 $(RM) -f build/readme.*
37
38custom-mappings: build/
39 $(PYTHON) gencodec.py python-mappings/ build/
40
41windows: build/
42 $(PYTHON) gencodec.py MAPPINGS/VENDORS/MICSFT/WINDOWS/ build/
43 $(RM) build/cp9*
44 $(RM) -f build/readme.*
45
46iso: build/
Thomas Woutersa9773292006-04-21 09:43:23 +000047 $(PYTHON) gencodec.py MAPPINGS/ISO8859/ build/ iso
Marc-André Lemburg68b49ef2005-10-25 11:55:01 +000048 $(RM) -f build/isoreadme.*
49
50apple: build/
Thomas Woutersa9773292006-04-21 09:43:23 +000051 $(PYTHON) gencodec.py MAPPINGS/VENDORS/APPLE/ build/ mac_
Marc-André Lemburg68b49ef2005-10-25 11:55:01 +000052 $(RM) build/mac_dingbats.*
53 $(RM) build/mac_japanese.*
54 $(RM) build/mac_chin*
55 $(RM) build/mac_korean.*
56 $(RM) build/mac_symbol.*
57 $(RM) build/mac_corpchar.*
58 $(RM) build/mac_devanaga.*
59 $(RM) build/mac_gaelic.*
60 $(RM) build/mac_gurmukhi.*
61 $(RM) build/mac_hebrew.*
62 $(RM) build/mac_inuit.*
63 $(RM) build/mac_thai.*
64 $(RM) build/mac_ukraine.*
65 $(RM) build/mac_arabic.py
66 $(RM) build/mac_celtic.*
67 $(RM) build/mac_gujarati.*
68 $(RM) build/mac_keyboard.*
69 $(RM) -f build/mac_readme.*
70
71ebcdic: build/
72 $(PYTHON) gencodec.py MAPPINGS/VENDORS/MICSFT/EBCDIC/ build/
73 $(RM) -f build/readme.*
74
Thomas Wouters49fd7fa2006-04-21 10:40:58 +000075cjk: build/
76 $(PYTHON) gencjkcodecs.py build/
77
Marc-André Lemburg68b49ef2005-10-25 11:55:01 +000078### Cleanup
79
80clean:
Thomas Wouters73e5a5b2006-06-08 15:35:45 +000081 $(RM) -f build/*
Marc-André Lemburg68b49ef2005-10-25 11:55:01 +000082
83distclean: clean
84 $(RM) -rf MAPPINGS/