-# make-update-po-files-rule PO_FILES POT_FILE_INPUT
-define make-update-po-files-rule
-$(1): $(2)
- @if ! [ -f "$$@" ]; then \
- echo "File $$po_file does not exist. If you are a translator, \
-you can create it with 'msginit'." 1>&2; \
- exit 1; \
- fi && \
- lang=$$$$(echo $$@ | $(SED) -E 's|.*\.([^.]*)\.po$$$$|\1|') && \
- echo $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) \
- --lang=$$$${lang} "$$@" "$$<" && \
- $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$$$${lang} "$$@" "$$<"
-endef
-