warzone2100/po/Makefile.raw

25 lines
619 B
Makefile

MAKERULES=../makerules
include $(MAKERULES)/configure.mk
.PHONY: all clean update-po po-files
all:
ifdef USE_GETTEXT
all: po-files
endif
po-files: nb.po de.po da.po nl.po la.po
update-po: clean po-files
$(PACKAGE).pot: POTFILES.in
$(XGETTEXT) --default-domain=$(PACKAGE) --directory=.. --add-comments=TRANSLATORS: --keyword=_ --keyword=N_ --keyword=P_:1c,2 --keyword=NP_:1c,2 --files-from=$< --copyright-holder="Warzone Resurrection Project" --msgid-bugs-address="warzone-dev@gna.org"
mv $(PACKAGE).po $@
%.po: $(PACKAGE).pot
$(MSGMERGE) $@ $(PACKAGE).pot -o $@.new
mv $@.new $@
clean:
$(RM) $(PACKAGE).pot