summaryrefslogtreecommitdiff
path: root/www/wiki/serialized/Makefile
blob: 45aed8802ae7d997ea4e1bc20f5a55fd22438fa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
SPECIAL_TARGETS=normalize-ar.ser normalize-ml.ser first-letters-root.ser
ALL_TARGETS=$(SPECIAL_TARGETS)
DIST_TARGETS=$(SPECIAL_TARGETS)
UNICODE_VERSION=6.0.0

.PHONY: all dist clean

all: $(ALL_TARGETS)
	@echo 'Warning: messages are no longer serialized by this makefile.'

dist: $(DIST_TARGETS)

clean:
	rm -f $(ALL_TARGETS)

normalize-ar.ser: UnicodeData.txt
	php ../maintenance/language/generateNormalizerDataAr.php

normalize-ml.ser:
	php ../maintenance/language/generateNormalizerDataMl.php

first-letters-root.ser: allkeys.txt ucd.all.grouped.xml
	php ../maintenance/language/generateCollationData.php

UnicodeData.txt:
	wget http://www.unicode.org/Public/$(UNICODE_VERSION)/ucd/UnicodeData.txt

allkeys.txt:
	wget http://www.unicode.org/Public/UCA/$(UNICODE_VERSION)/allkeys.txt

ucd.all.grouped.xml: ucd.all.grouped.zip
	unzip ucd.all.grouped.zip ucd.all.grouped.xml

ucd.all.grouped.zip:
	wget http://www.unicode.org/Public/$(UNICODE_VERSION)/ucdxml/ucd.all.grouped.zip