summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2017-06-29 19:37:00 +0000
committerNiels Thykier <niels@thykier.net>2017-06-29 19:41:00 +0000
commit53933594de9a3555c16e2078b18888744c1f0f95 (patch)
tree80e98700c2c2439542e842413baf5ccd862920fe /Makefile
parent9047f081757acd04f18d0f68f27f74042dea65dd (diff)
downloaddebhelper-53933594de9a3555c16e2078b18888744c1f0f95.tar.gz
Makefile: Make po4a run in parallel with English pod2man
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 286dbaa9..c82b8a49 100644
--- a/Makefile
+++ b/Makefile
@@ -50,16 +50,20 @@ POD2MAN_FLAGS=--utf8 -c Debhelper -r "$(VERSION)"
ifneq ($(USE_NLS),no)
# l10n to be built is determined from .po files
LANGS?=$(notdir $(basename $(wildcard man/po4a/po/*.po)))
+LANG_TARGETS = po4a-stamp translations
else
LANGS=
+LANG_TARGETS =
endif
-build: version debhelper.7 debhelper-obsolete-compat.7 translations $(MANPAGES)
+build: $(LANG_TARGETS) version debhelper.7 debhelper-obsolete-compat.7 $(MANPAGES)
-translations:
+po4a-stamp:
+ po4a --previous -L UTF-8 man/po4a/po4a.cfg
+
+translations: po4a-stamp
ifneq ($(USE_NLS),no)
- po4a --previous -L UTF-8 man/po4a/po4a.cfg
set -e; \
for lang in $(LANGS); do \
dir=man/$$lang; \