diff options
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 10 |
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 |