From 513ea3af2f5af37479a7e63e176dac2a51c38324 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 29 Jul 2025 22:09:16 +0200 Subject: Rename ‘po’ to ‘extract' and add ‘po’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GNUmakefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'GNUmakefile') 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 -- cgit v1.2.3