From e53b9d9e831d31c8b85beb1c33beefd396906fd3 Mon Sep 17 00:00:00 2001 From: dmcmahill Date: Sun, 10 Dec 2006 13:06:45 +0000 Subject: It doesn't work to put a conditional USE_TOOLS+= nroff in the middle of the do-build target. bmake does not like that. --- security/audit-packages/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'security') diff --git a/security/audit-packages/Makefile b/security/audit-packages/Makefile index 5c4088e2699..7598eb76fa8 100644 --- a/security/audit-packages/Makefile +++ b/security/audit-packages/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.74 2006/12/09 12:30:46 adrianp Exp $ +# $NetBSD: Makefile,v 1.75 2006/12/10 13:06:45 dmcmahill Exp $ DISTNAME= audit-packages-1.46 CATEGORIES= security pkgtools @@ -55,6 +55,10 @@ SUBST_SED.paths+= -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g' SUBST_SED.paths+= -e 's|@FIND@|${FIND}|g' SUBST_MESSAGE.paths= Fixing paths. +.if ${OPSYS} == "SunOS" || ${OPSYS} == "AIX" +USE_TOOLS+= nroff +.endif + do-build: for f in audit-packages audit-packages.0 audit-packages.8 \ download-vulnerability-list; do \ @@ -62,8 +66,6 @@ do-build: done .if ${OPSYS} == "SunOS" || ${OPSYS} == "AIX" -USE_TOOLS+= nroff - # pre-created man-pages are "mandoc" pages, these OS need "man", # so regen the .0 page ${NROFF} -man ${WRKSRC}/audit-packages.8 >${WRKSRC}/audit-packages.0 -- cgit v1.2.3