aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: 2fcf616bc5ccdebd97dee0730942eb5b9bb00bc9 (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 main/locale/%.ini,%,$(wildcard main/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: main/locale/%.ini main/locale/en.ini
	python translate.py $(*)
index.html: index.en.html
	cp $< $@