summaryrefslogtreecommitdiff
blob: 3bc7edafe6773780ee918f1982c1c17ea4bb7ac6 (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
.PHONY: help all clean test

CORE=http://www.unicode.org/Public/cldr/34/core.zip

help:
	@echo "'make all' to download CLDR data and rebuild files."
	@echo "'make test' to run the phpunit tests"
	@echo "'make clean' to delete the generated LanguageNames*.php files."
	@echo "'make distclean' to delete the CLDR data."

all: LanguageNames.php

distclean:
	rm -f core.zip
	rm -rf core

clean:
	rm -f CldrNames/CldrNames[A-Z]*.php

test:
	php ${MW_INSTALL_PATH}/tests/phpunit/phpunit.php tests

LanguageNames.php: core/
	php rebuild.php

core/: core.zip
	unzip core.zip -d core

core.zip:
	curl -C - -O $(CORE) || wget $(CORE) || fetch $(CORE)