2005-10-25 19:55:01 +08:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
2006-04-21 18:40:58 +08:00
|
|
|
codecs: misc windows iso apple ebcdic custom-mappings cjk
|
2005-10-25 19:55:01 +08:00
|
|
|
|
|
|
|
### 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/
|
2006-04-21 17:43:23 +08:00
|
|
|
$(PYTHON) gencodec.py MAPPINGS/ISO8859/ build/ iso
|
2005-10-25 19:55:01 +08:00
|
|
|
$(RM) -f build/isoreadme.*
|
|
|
|
|
|
|
|
apple: build/
|
2006-04-21 17:43:23 +08:00
|
|
|
$(PYTHON) gencodec.py MAPPINGS/VENDORS/APPLE/ build/ mac_
|
2005-10-25 19:55:01 +08:00
|
|
|
$(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.*
|
|
|
|
|
2006-04-21 18:40:58 +08:00
|
|
|
cjk: build/
|
|
|
|
$(PYTHON) gencjkcodecs.py build/
|
|
|
|
|
2005-10-25 19:55:01 +08:00
|
|
|
### Cleanup
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) build/*
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
$(RM) -rf MAPPINGS/
|