aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: 055149348dc47f6784925a4c1b5f40ff9d8c010e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)

.PHONY: all out
all: $(out)
clean:
	rm -f $(out)

index.%.html: main/locale/%.ini main/locale/en.ini
	python translate.py $(*)