From a7ae29a8257447227621efde489095ace81fd028 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 6 Oct 2024 23:02:10 +0200 Subject: localize --- makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 makefile (limited to 'makefile') 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 $(*) -- cgit v1.2.3-70-g09d2