blob: 6ccfabaaa3a52c282a5f95041aff62128e3320ba (
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: index_template.html dist-extra/locale/%.ini dist-extra/locale/en.ini
python translate.py $(*)
index.html: index.en.html
cp $< $@
|