From d41575103c2e450bace410fea6cfc08b4d9a5e9b Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Fri, 21 Feb 2014 22:45:22 +0100 Subject: =?UTF-8?q?fallback=20to=20rxgettext=20if=20rgettext=20is=20not=20?= =?UTF-8?q?available=20(thanks=20to=20IOhannes=20m=20zm=C3=B6lnig)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3