aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2014-02-21 22:45:22 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2014-02-21 22:45:22 +0100
commitd41575103c2e450bace410fea6cfc08b4d9a5e9b (patch)
treee41ca19221faac7ba1a90d232e037cce7d459bf8 /Makefile
parent54c241377bf46d85d5371a5dccef0222bd36acc0 (diff)
fallback to rxgettext if rgettext is not available (thanks to IOhannes m zmölnig)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 25f4335..40d8268 100644
--- a/Makefile
+++ b/Makefile
@@ -21,9 +21,11 @@ DOMAIN=dudle
locale: $(foreach p,$(wildcard locale/*/$(DOMAIN).po), $(addsuffix .mo,$(basename $p)))
+RGETTEXT=$(firstword $(shell which rgettext rxgettext))
+
locale/$(DOMAIN).pot: *.rb *.cgi
rm -f $@
- rgettext *.cgi *.rb -o $@
+ $(RGETTEXT) *.cgi *.rb -o $@
%.mo: %.po
msgfmt $*.po -o $*.mo