summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorBrendan O'Dea <bod@debian.org>2014-06-29 11:53:30 +1000
committerBrendan O'Dea <bod@debian.org>2014-06-29 11:53:30 +1000
commit7a116783bc76128c604a728f74c94655579f82f3 (patch)
tree99dbf4318e9954495b442133d2a62db3732e809e /Makefile.in
parent5f2b853f0d6afa9c4af8fbde10bd92795f67d89a (diff)
downloadhelp2man-7a116783bc76128c604a728f74c94655579f82f3.tar.gz
Add sanity check for direntry in texi translations
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index cffa567..8774477 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -122,7 +122,7 @@ clean:
mostlyclean: clean
rm -f $(target).dvi $(target).aux $(target).cp $(target).cps \
$(target).fn $(target).ky $(target).log $(target).pg $(target).toc \
- $(target).tp $(target).vr po/*.po~
+ $(target).tp $(target).vr po/*.po~ po-texi/*.pot~
distclean: mostlyclean
-rm -rf config.cache config.log config.status Makefile autom4te.cache
@@ -189,8 +189,9 @@ $(target)-%.info: $(target)-%.texi
$(target)-%.texi: $(srcdir)/po-texi/%.po $(srcdir)/help2man.texi
set -e; \
lang=$(patsubst $(target)-%.texi,%,$@); \
- $(PO4A_TRANSLATE) -f texinfo -m $(srcdir)/help2man.texi \
- -p $(srcdir)/po-texi/$$lang.po -l $@
+ po="$(srcdir)/po-texi/$$lang.po"; \
+ grep -q '^msgstr "help2man-'$$lang': (help2man-'$$lang')"' $$po; \
+ $(PO4A_TRANSLATE) -f texinfo -m $(srcdir)/help2man.texi -p $$po -l $@
dvi: $(target).dvi
$(target).dvi: $(srcdir)/$(target).texi