No functional change unless PO4A is in the environment.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
+include ../i18n-common.make
+PO4A ?= po4a
+
all: translated-always
pofiles: po4a.cfg
all: translated-always
pofiles: po4a.cfg
- po4a --no-translations $<
-
-e=set -e; exec >$@.tmp
-f=mv -f $@.tmp $@
-o= >$@.tmp && $f
-
-S=@
-# Set S='' to see commands being run
+ $(PO4A) --no-translations $<
po4a.cfg: list-documents
./$< $o
po4a.cfg: list-documents
./$< $o
translated-only: po4a.cfg
rm -rf $t && mkdir $t
cd $t && ln -s $p/*.po $p/*.pot $p/po4a.cfg .
translated-only: po4a.cfg
rm -rf $t && mkdir $t
cd $t && ln -s $p/*.po $p/*.pot $p/po4a.cfg .
+ cd $t && $(PO4A) po4a.cfg
! test -d $t/translated || \
cp -al --remove-destination $t/translated .
! test -d $t/translated || \
cp -al --remove-destination $t/translated .
.PRECIOUS: .po4a.%.cfg
preview.%: .po4a.%.cfg
.PRECIOUS: .po4a.%.cfg
preview.%: .po4a.%.cfg
$S ./install-documents >/dev/null .$*.translated $@
@ echo '# runes to preview the various final tranlated manpages:'
$S find $@ -type f -printf 'man -l %p\n'
$S ./install-documents >/dev/null .$*.translated $@
@ echo '# runes to preview the various final tranlated manpages:'
$S find $@ -type f -printf 'man -l %p\n'