[apparmor] [PATCH] make LANGS variable overrideable
Steve Beattie
steve at nxnw.org
Fri May 20 19:10:10 UTC 2011
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.
---
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
--
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20110520/92c83df3/attachment.pgp>
More information about the AppArmor
mailing list