blob: adbb9bc4dce55339c315b54b188a7a392f59db2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
noop =
space = $(noop) $(noop)
comma = ,
langs = $(patsubst dist-extra/locale/%.ini,%,$(wildcard dist-extra/locale/*.ini))
s_langs = $(subst $(space),$(comma),$(langs))
out = $(shell echo index.{$(s_langs)}.html) index.html
.PHONY: all out
all: $(out)
clean:
rm -f $(out)
index.%.html: dist-extra/locale/%.ini dist-extra/locale/en.ini
python translate.py $(*)
index.html: index.en.html
cp $< $@
|