gettext.mk: Use pattern rule %.po: %pot

Currently, there's a  $(GETTEXT_PROJECT_PO): $(GETTEXT_POT) rule, but since
updates to the workflow now considers, allows and mandates one or multiple
*.pot files as the authoritative source for translations, make this a pattern
rule rather than only valid for $(GETTEXT_POT).

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2025-02-22 12:40:45 +00:00
commit ccc8725dff

View file

@ -50,7 +50,7 @@ merge-pot: $(GETTEXT_POT)
$(wildcard $(GETTEXT_PROJECT_PO)) $< $(wildcard $(GETTEXT_PROJECT_PO)) $<
mv $(GETTEXT_PROJECT_PO).tmp $(GETTEXT_PROJECT_PO) mv $(GETTEXT_PROJECT_PO).tmp $(GETTEXT_PROJECT_PO)
$(GETTEXT_PROJECT_PO): $(GETTEXT_POT) %.po: %.pot
msgcat --lang $(GETTEXT_LOCALE) --output-file $@.tmp $^ msgcat --lang $(GETTEXT_LOCALE) --output-file $@.tmp $^
mv $@.tmp $@ mv $@.tmp $@