FILES=FreeDoko.po ChangeLog.po

.PHONY: all
all: $(FILES) LC_MESSAGES/FreeDoko.mo

%.po: ../%.pot
	test -f $@ || msginit --no-translator --input=$< --locale=de --output=$@
	msgmerge --no-fuzzy-matching --no-location --output-file=$@ $@ $<

LC_MESSAGES/FreeDoko.mo: $(FILES)
	test -d LC_MESSAGES || mkdir LC_MESSAGES
	msgfmt --output-file=$@ $^

.PHONY: clean
clean:
	$(RM) LC_MESSAGES/FreeDoko.mo
