diff options
author | Christian Persch <chpe@gnome.org> | 2013-11-24 23:20:53 +0100 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2013-11-25 10:05:39 -0500 |
commit | 0929f449089044bbc05af54668f1c4c254b9a15c (patch) | |
tree | 05a8fc39b3694710d640cf737d61d4d8a4921ab9 /tools | |
parent | 4c6c5bab66c7fe0ad419ff573cd65b6bb0ec8002 (diff) | |
download | yelp-tools-0929f449089044bbc05af54668f1c4c254b9a15c.tar.gz |
yelp.m4: Add no-lc-dist option
Add no-lc-dist option to disable disting the generated lc files. Disabled by
default for backwards compatibility.
https://bugzilla.gnome.org/show_bug.cgi?id=672919
Diffstat (limited to 'tools')
-rw-r--r-- | tools/yelp.m4 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/yelp.m4 b/tools/yelp.m4 index af56c45..cfb07e1 100644 --- a/tools/yelp.m4 +++ b/tools/yelp.m4 @@ -6,15 +6,19 @@ m4_pattern_allow([AM_V_GEN]) m4_pattern_allow([AM_DEFAULT_VERBOSITY]) YELP_LC_MEDIA_LINKS=true +YELP_LC_DIST=true for yelpopt in [$1]; do case $yelpopt in lc-media-links) YELP_LC_MEDIA_LINKS=true ;; no-lc-media-links) YELP_LC_MEDIA_LINKS= ;; + lc-dist) YELP_LC_DIST=true ;; + no-lc-dist) YELP_LC_DIST= ;; *) AC_MSG_ERROR([Unrecognized [YELP_HELP_INIT] option $yelpopt"]) ;; esac done; AC_SUBST([YELP_LC_MEDIA_LINKS]) +AC_SUBST([YELP_LC_DIST]) AC_ARG_WITH([help-dir], AC_HELP_STRING([--with-help-dir=DIR], @@ -110,13 +114,13 @@ clean-help: EXTRA_DIST ?= EXTRA_DIST += $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) -EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).stamp) +EXTRA_DIST += $(if $(YELP_LC_DIST),$(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).stamp)) EXTRA_DIST += $(foreach lc,$(HELP_LINGUAS),$(lc)/$(lc).po) EXTRA_DIST += $(foreach f,$(HELP_MEDIA),$(foreach lc,$(HELP_LINGUAS),$(wildcard $(lc)/$(f)))) distdir: distdir-help-files distdir-help-files: - @for lc in C $(HELP_LINGUAS); do \ + @for lc in C $(if $(YELP_LC_DIST),$(HELP_LINGUAS)) ; do \ $(MKDIR_P) "$(distdir)/$$lc"; \ for file in $(HELP_FILES); do \ if test -f "$$lc/$$file"; then d=./; else d=$(srcdir)/; fi; \ |