Subject: Re: CVS commit: htdocs/share/mk
To: None <tron@netbsd.org>
From: Roland Illig <rillig@NetBSD.org>
List: www-changes
Date: 03/06/2007 02:15:56
Matthias Scheler wrote:
> Module Name:	htdocs
> Committed By:	tron
> Date:		Wed Feb 28 08:54:40 UTC 2007
> 
> Modified Files:
> 	htdocs/share/mk: doc.docbook.mk web.prefs.mk
> 
> Log Message:
> Define "BSD_PKG_MK" before including "bsd.own.mk". It's a known good
> practice to enclose "pkgsrc" related definitions in "/etc/mk.conf" in
> ".if defined(BSD_PKG_MK)" and ".endif". And these makefiles need those
> definitions.

I would prefer that you change your mk.conf to say:

.if defined(BSD_PKG_MK) || defined(BUILDING_HTDOCS)
...
.endif

That's why I added the latter variable some months ago.

Roland