[apparmor] [PATCH] make LANGS variable overrideable

John Johansen john.johansen at canonical.com
Fri May 20 19:25:37 UTC 2011


On 05/20/2011 12:10 PM, Steve Beattie wrote:
> This patch makes it possible to override the default set of language
> translations to be built via the LANGS make argument whitelist. For
> example:
> 
>   cd parser; make all install "LANGS=en_US fr"
> 
> will build and install the en_US and fr .mo files for the parser.
> 
Acked-by: John Johansen <john.johansen at canonical.com>


> ---
>  README               |    4 ++++
>  common/Make-po.rules |    3 ++-
>  2 files changed, 6 insertions(+), 1 deletion(-)
> 
> Index: b/README
> ===================================================================
> --- a/README
> +++ b/README
> @@ -104,6 +104,10 @@ $ make check	# depends on the parser hav
>  $ make install
>  
>  
> +[Note that for the parser and the utils, if you only with to build/use
> + some of the locale languages, you can override the default by passing
> + the LANGS arguments to make; e.g. make all install "LANGS=en_US fr".]
> +
>  -------------------
>  AppArmor Testsuites
>  -------------------
> Index: b/common/Make-po.rules
> ===================================================================
> --- a/common/Make-po.rules
> +++ b/common/Make-po.rules
> @@ -27,7 +27,8 @@ XGETTEXT_ARGS=--copyright-holder="NOVELL
>  # pass in the list of sources in the SOURCES variable
>  PARENT_SOURCES=$(foreach source, ${SOURCES}, ../${source})
>  
> -LANGS=$(patsubst %.po, %, $(wildcard *.po))
> +# Can override by passing LANGS=whatever here
> +LANGS?=$(patsubst %.po, %, $(wildcard *.po))
>  TARGET_MOS=$(foreach lang, $(filter-out $(DISABLED_LANGS),$(LANGS)), ${lang}.mo)
>  
>  .PHONY: all
> 
> 




More information about the AppArmor mailing list