|
| 1 | +# |
| 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 |
| 9 | +PYTHON = python |
| 10 | + |
| 11 | +# Remove tool to use |
| 12 | +RM = /bin/rm |
| 13 | + |
| 14 | +### Generic targets |
| 15 | + |
| 16 | +all: distclean mappings codecs |
| 17 | + |
| 18 | +codecs: misc windows iso apple ebcdic custom-mappings |
| 19 | + |
| 20 | +### Mappings |
| 21 | + |
| 22 | +mappings: |
| 23 | + ncftpget -R ftp.unicode.org . Public/MAPPINGS |
| 24 | + |
| 25 | +### Codecs |
| 26 | + |
| 27 | +build/: |
| 28 | + mkdir build |
| 29 | + |
| 30 | +misc: 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 | + |
| 38 | +custom-mappings: build/ |
| 39 | + $(PYTHON) gencodec.py python-mappings/ build/ |
| 40 | + |
| 41 | +windows: build/ |
| 42 | + $(PYTHON) gencodec.py MAPPINGS/VENDORS/MICSFT/WINDOWS/ build/ |
| 43 | + $(RM) build/cp9* |
| 44 | + $(RM) -f build/readme.* |
| 45 | + |
| 46 | +iso: build/ |
| 47 | + $(PYTHON) gencodec.py MAPPINGS/ISO8859/ build/iso |
| 48 | + $(RM) -f build/isoreadme.* |
| 49 | + |
| 50 | +apple: build/ |
| 51 | + $(PYTHON) gencodec.py MAPPINGS/VENDORS/APPLE/ build/mac_ |
| 52 | + $(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 | + |
| 71 | +ebcdic: build/ |
| 72 | + $(PYTHON) gencodec.py MAPPINGS/VENDORS/MICSFT/EBCDIC/ build/ |
| 73 | + $(RM) -f build/readme.* |
| 74 | + |
| 75 | +### Cleanup |
| 76 | + |
| 77 | +clean: |
| 78 | + $(RM) build/* |
| 79 | + |
| 80 | +distclean: clean |
| 81 | + $(RM) -rf MAPPINGS/ |
0 commit comments