summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2005-10-25 11:55:01 +0000
committerMarc-André Lemburg <mal@egenix.com>2005-10-25 11:55:01 +0000
commit2d62674aaa01f24a10ec0094e371cff2f8781fcb (patch)
tree966fee9817aa59e4dbbf822a2ce5b7f9e2b864dc /Tools
parent641864ec03fdd6285edfdb4f17a0de90404e8b2b (diff)
downloadcpython-2d62674aaa01f24a10ec0094e371cff2f8781fcb.tar.gz
Add Makefile which allows easily rebuilding the charmap codecs.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/unicode/Makefile81
1 files changed, 81 insertions, 0 deletions
diff --git a/Tools/unicode/Makefile b/Tools/unicode/Makefile
new file mode 100644
index 0000000000..34a9df989b
--- /dev/null
+++ b/Tools/unicode/Makefile
@@ -0,0 +1,81 @@
+#
+# Recreate the Python charmap codecs from the Unicode mapping
+# files available at ftp://ftp.unicode.org/
+#
+#(c) Copyright Marc-Andre Lemburg, 2005.
+# Licensed to PSF under a Contributor Agreement.
+
+# Python binary to use
+PYTHON = python
+
+# Remove tool to use
+RM = /bin/rm
+
+### Generic targets
+
+all: distclean mappings codecs
+
+codecs: misc windows iso apple ebcdic custom-mappings
+
+### Mappings
+
+mappings:
+ ncftpget -R ftp.unicode.org . Public/MAPPINGS
+
+### Codecs
+
+build/:
+ mkdir build
+
+misc: build/
+ $(PYTHON) gencodec.py MAPPINGS/VENDORS/MISC/ build/
+ $(RM) build/atarist.*
+ $(RM) build/us_ascii_quotes.*
+ $(RM) build/ibmgraph.*
+ $(RM) build/sgml.*
+ $(RM) -f build/readme.*
+
+custom-mappings: build/
+ $(PYTHON) gencodec.py python-mappings/ build/
+
+windows: build/
+ $(PYTHON) gencodec.py MAPPINGS/VENDORS/MICSFT/WINDOWS/ build/
+ $(RM) build/cp9*
+ $(RM) -f build/readme.*
+
+iso: build/
+ $(PYTHON) gencodec.py MAPPINGS/ISO8859/ build/iso
+ $(RM) -f build/isoreadme.*
+
+apple: build/
+ $(PYTHON) gencodec.py MAPPINGS/VENDORS/APPLE/ build/mac_
+ $(RM) build/mac_dingbats.*
+ $(RM) build/mac_japanese.*
+ $(RM) build/mac_chin*
+ $(RM) build/mac_korean.*
+ $(RM) build/mac_symbol.*
+ $(RM) build/mac_corpchar.*
+ $(RM) build/mac_devanaga.*
+ $(RM) build/mac_gaelic.*
+ $(RM) build/mac_gurmukhi.*
+ $(RM) build/mac_hebrew.*
+ $(RM) build/mac_inuit.*
+ $(RM) build/mac_thai.*
+ $(RM) build/mac_ukraine.*
+ $(RM) build/mac_arabic.py
+ $(RM) build/mac_celtic.*
+ $(RM) build/mac_gujarati.*
+ $(RM) build/mac_keyboard.*
+ $(RM) -f build/mac_readme.*
+
+ebcdic: build/
+ $(PYTHON) gencodec.py MAPPINGS/VENDORS/MICSFT/EBCDIC/ build/
+ $(RM) -f build/readme.*
+
+### Cleanup
+
+clean:
+ $(RM) build/*
+
+distclean: clean
+ $(RM) -rf MAPPINGS/