aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..0551493
--- /dev/null
+++ b/makefile
@@ -0,0 +1,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 $(*)