aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-10-06 23:02:10 +0200
committermetamuffin <metamuffin@disroot.org>2024-10-06 23:02:10 +0200
commita7ae29a8257447227621efde489095ace81fd028 (patch)
tree106650baf2992661f840bc228687d471b7493609 /makefile
parentde9d2e0ae8187014983fe08e25383d24b1f76d1b (diff)
downloadhurrycurry-website-a7ae29a8257447227621efde489095ace81fd028.tar
hurrycurry-website-a7ae29a8257447227621efde489095ace81fd028.tar.bz2
hurrycurry-website-a7ae29a8257447227621efde489095ace81fd028.tar.zst
localize
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 $(*)