mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
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.
This commit is contained in:
parent
627638a6cf
commit
c2fdcf7d39
2 changed files with 6 additions and 1 deletions
4
README
4
README
|
@ -104,6 +104,10 @@ $ make check # depends on the parser having been built first
|
|||
$ 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
|
||||
-------------------
|
||||
|
|
|
@ -27,7 +27,8 @@ XGETTEXT_ARGS=--copyright-holder="NOVELL, Inc." --msgid-bugs-address=apparmor@li
|
|||
# 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
|
||||
|
|
Loading…
Add table
Reference in a new issue