# The default target of this Makefile is...
update-po::

PO_TEMPLATE = git-gui-glossary.pot

ALL_POFILES = $(wildcard *.po)

$(PO_TEMPLATE): $(subst .pot,.txt,$(PO_TEMPLATE))
	./txt-to-pot.sh $< > $@

update-po:: git-gui-glossary.pot
	$(foreach p, $(ALL_POFILES), echo Updating $p ; msgmerge -U $p $(PO_TEMPLATE) ; )
