| 1 | # The default target of this Makefile is... |
| 2 | update-po:: |
| 3 | |
| 4 | PO_TEMPLATE = git-gui-glossary.pot |
| 5 | |
| 6 | ALL_POFILES = $(wildcard *.po) |
| 7 | |
| 8 | $(PO_TEMPLATE): $(subst .pot,.txt,$(PO_TEMPLATE)) |
| 9 | ./txt-to-pot.sh $< > $@ |
| 10 | |
| 11 | update-po:: git-gui-glossary.pot |
| 12 | $(foreach p, $(ALL_POFILES), echo Updating $p ; msgmerge -U $p $(PO_TEMPLATE) ; ) |