summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristoph Junghans <ottxor@gentoo.org>2012-11-11 12:09:50 -0700
committerJoey Hess <joey@kitenet.net>2012-11-12 16:37:03 -0400
commit20672fd5f4f015d4aac1227af45ff73980194539 (patch)
tree9243dc6a4eb6681b7c399831a2111064e86d57f0 /Makefile
parent6ce2f87d2072fc99be60cc3e7ea24c630a655403 (diff)
Makefile: add USE_NLS to disable nls support
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 38f3c15..41e7ff3 100644
--- a/Makefile
+++ b/Makefile
@@ -40,12 +40,17 @@ PERLLIBDIR=$(shell perl -MConfig -e 'print $$Config{vendorlib}')/Debian/Debhelpe
POD2MAN=pod2man --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)))
+LANGS?=$(notdir $(basename $(wildcard man/po4a/po/*.po)))
+else
+LANGS=
+endif
build: version debhelper.7
find . -maxdepth 1 -type f -perm +100 -name "dh*" \
-exec $(POD2MAN) {} {}.1 \;
+ifneq ($(USE_NLS),no)
po4a --previous -L UTF-8 man/po4a/po4a.cfg
set -e; \
for lang in $(LANGS); do \
@@ -60,6 +65,7 @@ build: version debhelper.7
$(POD2MAN) --name="debhelper" --section=7 > debhelper.$$lang.7; \
fi; \
done
+endif
version:
printf "package Debian::Debhelper::Dh_Version;\n\$$version='$(VERSION)';\n1" > \