From 20672fd5f4f015d4aac1227af45ff73980194539 Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Sun, 11 Nov 2012 12:09:50 -0700 Subject: Makefile: add USE_NLS to disable nls support --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 38f3c15d..41e7ff3a 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" > \ -- cgit v1.2.3