summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Terry <michael.terry@canonical.com>2011-06-28 07:52:29 -0400
committerShaun McCance <shaunm@gnome.org>2011-08-31 12:33:14 -0400
commit536e2d082f933635cae234bbc598a48aebf4d2c9 (patch)
tree37078b2c68dfbabb59b966619f83f1ed8f1dd23a
parent2de61c1554bd8aaa2ae18f846b09c969308b0b45 (diff)
downloadyelp-tools-536e2d082f933635cae234bbc598a48aebf4d2c9.tar.gz
yelp.m4: Add HELP_POT variable to specify pot name
https://bugzilla.gnome.org/show_bug.cgi?id=653566
-rw-r--r--tools/yelp.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/yelp.m4 b/tools/yelp.m4
index b31f02d..029c713 100644
--- a/tools/yelp.m4
+++ b/tools/yelp.m4
@@ -25,13 +25,14 @@ fi
YELP_HELP_RULES='
HELP_ID ?=
+HELP_POT ?=
HELP_FILES ?=
HELP_EXTRA ?=
HELP_MEDIA ?=
HELP_LINGUAS ?=
_HELP_LINGUAS = $(if $(filter environment,$(origin LINGUAS)),$(filter $(LINGUAS),$(HELP_LINGUAS)),$(HELP_LINGUAS))
-_HELP_POTFILE = $(if $(HELP_ID),$(HELP_ID).pot)
+_HELP_POTFILE = $(if $(HELP_POT),$(HELP_POT),$(if $(HELP_ID),$(HELP_ID).pot))
_HELP_POFILES = $(if $(HELP_ID),$(foreach lc,$(_HELP_LINGUAS),$(lc)/$(lc).po))
_HELP_MOFILES = $(patsubst %.po,%.mo,$(_HELP_POFILES))
_HELP_C_FILES = $(foreach f,$(HELP_FILES),C/$(f))