summaryrefslogtreecommitdiff
blob: 2bc56a9821d690f12322caeced33a0f4c82ea7dd (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=https://www.unicode.org/Public/cldr/37/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)