po: only warn on pot generation.

Commit c4bb708 was making `make check` fail. I should not return `false`
on the .pot file generation, simply warn. I explicitly fail the `make
update-po` command though when $(INTLTOOL_UPDATE) is the `true` command
because I know the message merge will fail and there won't be any proper
error message explaining why when it does.
This commit is contained in:
Jehan 2016-10-03 15:28:18 +02:00
parent badd7ce257
commit 20d45e5919
1 changed files with 7 additions and 3 deletions

View File

@ -98,9 +98,8 @@ all-no:
$(GETTEXT_PACKAGE).pot: $(POTFILES)
@if test "x$(INTLTOOL_UPDATE)" = "x/bin/true"; then \
echo "Error: po generation deactivated on VPATH builds."; \
echo " See commit c96006919."; \
false; \
echo "Warning: pot generation deactivated on VPATH builds."; \
echo " See commit c96006919."; \
fi
$(GENPOT)
@ -185,6 +184,11 @@ dist distdir: $(DISTFILES)
done
update-po: Makefile
@if test "x$(INTLTOOL_UPDATE)" = "x/bin/true"; then \
echo "Error: po generation deactivated on VPATH builds."; \
echo " See commit c96006919."; \
false; \
fi
$(MAKE) $(GETTEXT_PACKAGE).pot
tmpdir=`pwd`; \
linguas="$(USE_LINGUAS)"; \