Add MSGFMT and MSGFMTFLAGS

This commit is contained in:
Sebastian Ramacher 2012-03-14 22:24:25 +01:00
parent 05b92f5417
commit 1407e46724
2 changed files with 4 additions and 1 deletions

View File

@ -72,6 +72,9 @@ CC ?= gcc
# strip
SFLAGS ?= -s
# msgfmt
MSGFMT ?= msgfmt
# valgrind
VALGRIND = valgrind
VALGRIND_ARGUMENTS = --tool=memcheck --leak-check=yes --leak-resolution=high \

View File

@ -32,7 +32,7 @@ update-po: ${PROJECT}.pot
%/LC_MESSAGES/${PROJECT}.mo: %.po
@mkdir -p $(@D)
$(ECHO) msgfmt $(shell echo $< | sed 's/\.po//')
$(QUIET)msgfmt $< -o $@ -f -c
$(QUIET)${MSGFMT} ${MSGFMTFLAGS} -c $< -o $@
install: ${MOS}
$(ECHO) installing translations