From 6eb68e2e0cbaf55573de6e32dca1dfaad0174702 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 7 Oct 2015 06:36:21 +0200 Subject: [PATCH] lang: avoid a warning on systems that don't create templates --- lang/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/Makefile b/lang/Makefile index 9a6b53ee0..d76a3798a 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -10,7 +10,6 @@ MSGMERGE= ${_MSGMERGE} -U -N --backup=off PERL_DIR= /usr/local/lib/perl5/site_perl PERL_NAME= Locale/Maketext/Extract/Plugin -PERL_CP!= cp -v ${.CURDIR}/Volt.pm ${PERL_DIR}/${PERL_NAME}/ LOCALEDIR= /usr/local/share/locale/%%LANG%%/LC_MESSAGES @@ -48,6 +47,8 @@ MERGE+= merge-${LANG} .endfor ${TEMPLATE}: + # bootstrap Volt template, fail means no xgettext.pl found + @cp ${.CURDIR}/Volt.pm ${PERL_DIR}/${PERL_NAME}/ @: > ${TEMPLATE}.pot cd ${.CURDIR}/.. && \ ${XGETTEXT_PL} -D src -p ${.CURDIR} -o ${TEMPLATE}.pot