summaryrefslogtreecommitdiff
path: root/libraries/base/codepages/Makefile
blob: dab5cf5d5753cd2b39a9f60fbd4aedb68b428384 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

.PHONY: default
default:
	$(MAKE) getCodepages
	$(MAKE) genTable

.PHONY: getCodepages
getCodepages:
	rm -rf www.unicode.org
	rm -rf CPs
	mkdir CPs
	wget -r -np http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/
	find www.unicode.org -name 'CP*' -exec cp {} CPs \;

.PHONY: genTable
genTable:
	ghc --make MakeTable
	./MakeTable GHC.IO.Encoding.CodePage.Table ../GHC/IO/Encoding/CodePage/Table.hs CPs/*