chiark / gitweb /
po4a: pairwise-pocheck: Force it to be run sometimes
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 7 Nov 2018 22:33:22 +0000 (22:33 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 8 Nov 2018 00:21:02 +0000 (00:21 +0000)
 * when building a binary package
 * when preparing a translation preview

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/control
po4a/Makefile

index 62a4a11..eef4dca 100644 (file)
@@ -3,7 +3,7 @@ Section: devel
 Priority: optional
 Maintainer: Ian Jackson <ijackson@chiark.greenend.org.uk>
 Standards-Version: 3.9.4.0
-Build-Depends: debhelper (>= 9), gettext, po4a
+Build-Depends: debhelper (>= 9), gettext, po4a, tcl
 Testsuite: autopkgtest
 Vcs-Git: git://git.chiark.greenend.org.uk/~ianmdlvl/dgit.git
 Vcs-Browser: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git/dgit.git/
index 3354812..d3663e5 100644 (file)
@@ -110,7 +110,7 @@ pairwise-pocheck.check:
 t = ../.po4a.translated-only
 p = ../po4a
 
-translated-only: po4a.cfg
+translated-only: po4a.cfg pairwise-pocheck.check
        rm -rf $t && mkdir $t
        cd $t && ln -s $p/*.po $p/*.pot $p/po4a.cfg .
        cd $t && $(PO4A) po4a.cfg
@@ -127,7 +127,7 @@ translated-only: po4a.cfg
 pairwise-pocheck.%.check:
        ./pairwise-pocheck $*
 
-preview.%: .po4a.%.cfg
+preview.%: .po4a.%.cfg pairwise-pocheck.%.check
        $S $(PO4A) $<
        $S ./install-documents >/dev/null .$*.translated $@
        @ echo '# runes to preview the various final tranlated manpages:'