4c7add7b08
Signed-off-by: Dan Yeaw <dan@yeaw.me>
19 lines
471 B
Makefile
19 lines
471 B
Makefile
LANGS=ca es fr hr it nl pt_BR ru sv hu fi
|
|
|
|
SRCS=$(shell find ../gaphor -path ../gaphor/locale -prune -o -print)
|
|
MO_FILES=$(patsubst %,../gaphor/locale/%/LC_MESSAGES/gaphor.mo,$(LANGS))
|
|
|
|
all: $(MO_FILES)
|
|
|
|
gaphor.pot: $(SRCS)
|
|
pybabel extract -o gaphor.pot -F babel.ini ../gaphor
|
|
|
|
%.po: gaphor.pot
|
|
pybabel update -i $< -o $@ -l $* -D gaphor
|
|
|
|
../gaphor/locale/%/LC_MESSAGES/gaphor.mo: %.po
|
|
mkdir -p $$(dirname $@)
|
|
pybabel compile -i $< -o $@ -l $* -D gaphor
|
|
|
|
.PHONY: all
|