aboutsummaryrefslogtreecommitdiffhomepage
path: root/GNUmakefile
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-07-29 22:09:16 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-07-29 22:09:16 +0200
commit513ea3af2f5af37479a7e63e176dac2a51c38324 (patch)
treee9c397f732bf11a5244a92ab437690018e012d8d /GNUmakefile
parent11116bc25af667597fc715850f59ede104399ffd (diff)
Rename ‘po’ to ‘extract' and add ‘po’
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 23f261b..6e320e7 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -15,7 +15,7 @@ all: euro-cash.eu exttmpl
euro-cash.eu: $(cssfiles) $(templates) $(gofiles) $(sqlfiles)
$(GO) build
-po: exttmpl
+extract: exttmpl
find . -name '*.go' -exec xgettext -Lgo --force-po --from-code=UTF-8 \
-o po/backend.pot {} +
find . -name '*.html.tmpl' -exec ./exttmpl {} + \
@@ -33,6 +33,12 @@ po: exttmpl
done
find po -name '*~' -delete
+po:
+ for po in po/*/*.po; \
+ do \
+ msgfmt "$$po" -o "$${po%.*}.mo"; \
+ done
+
exttmpl: $(exttmpl)
$(GO) build ./cmd/exttmpl
@@ -52,4 +58,4 @@ clean:
-or -name '*.tar.gz' \
\) -delete
-.PHONY: clean po release \ No newline at end of file
+.PHONY: clean extract po release \ No newline at end of file