po: Create empty files to be edited by xgettext

This avoids:

    xgettext: error while opening "libguestfs.pot-t" for reading: No such file or directory

which I observed with xgettext (GNU gettext-tools) 0.18.3
This commit is contained in:
Hilko Bengen
2013-12-09 20:51:37 +01:00
parent dabc7a4a56
commit 0c0caaddb0

View File

@@ -67,6 +67,7 @@ XGETTEXT_ARGS = \
$(DOMAIN).pot: Makefile POTFILES $(POTFILES) POTFILES-pl $(POTFILES_PL) POTFILES-ml $(POTFILES_ML)
rm -f $@-t
touch $@-t
if HAVE_OCAML_GETTEXT
$(OCAML_GETTEXT) --action extract --extract-pot $@-t $(POTFILES_ML)
endif