mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
gettext.mk: Support GETTEXT_INPUT_EXTS
GETTEXT_INPUT_EXTS takes a whitespace separated list of extensions which are subsequently passed to find -name to locate source files which are meant to be run through xgettext. The first argument to find, translateme, is not really meant to exist, it's just there to allow adding multiple extensions preceded by -o in a $(foreach) loop. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
ea8b90e46f
commit
e53032ab9c
1 changed files with 2 additions and 1 deletions
|
|
@ -11,8 +11,9 @@ GETTEXT_POT ?= $(wildcard *.pot)
|
||||||
GETTEXT_PO ?= $(patsubst %.pot,%.po,$(GETTEXT_POT))
|
GETTEXT_PO ?= $(patsubst %.pot,%.po,$(GETTEXT_POT))
|
||||||
GETTEXT_MO ?= $(patsubst %.po,%.mo,$(GETTEXT_PO))
|
GETTEXT_MO ?= $(patsubst %.po,%.mo,$(GETTEXT_PO))
|
||||||
GETTEXT_INPUT_DIRS ?= $(wildcard $(TOPDIR)/tools $(TOPDIR)/src $(TOPDIR)/conf)
|
GETTEXT_INPUT_DIRS ?= $(wildcard $(TOPDIR)/tools $(TOPDIR)/src $(TOPDIR)/conf)
|
||||||
|
GETTEXT_INPUT_EXTS ?= php cpp conf
|
||||||
GETTEXT_INPUT_FILES ?= $(foreach d,$(GETTEXT_INPUT_DIRS),\
|
GETTEXT_INPUT_FILES ?= $(foreach d,$(GETTEXT_INPUT_DIRS),\
|
||||||
$(shell find $d -name '*.php' -o -name '*.cpp' -o -name '*.conf'))
|
$(shell find $d -name translate-me $(foreach ext,$(GETTEXT_INPUT_EXTS),-o -name '*.$(ext)')))
|
||||||
GETTEXT_KEYWORDS ?= htr ehtr $(GETTEXT_EXTRA_KEYWORDS)
|
GETTEXT_KEYWORDS ?= htr ehtr $(GETTEXT_EXTRA_KEYWORDS)
|
||||||
GETTEXT_LINKS ?= LC_MESSAGES
|
GETTEXT_LINKS ?= LC_MESSAGES
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue