Enforce correct use of SUBPACKAGE.

This commit is contained in:
espie 2001-09-29 17:36:02 +00:00
parent 9dc28fda17
commit f540cb1856

View File

@ -1,6 +1,6 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4 sw=4 filetype=make:
FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.462 2001/09/28 01:48:58 naddy Exp $$
FULL_REVISION=$$OpenBSD: bsd.port.mk,v 1.463 2001/09/29 17:36:02 espie Exp $$
# $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp Exp $
# $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $
#
@ -40,6 +40,9 @@ ERRORS+= "Fatal: Need version ${NEED_VERSION} of bsd.port.mk."
.if ${.MAKEFLAGS:MFLAVOR=*}
ERRORS+= "Fatal: Use 'env FLAVOR=${FLAVOR} ${MAKE}' instead."
.endif
.if ${.MAKEFLAGS:MSUBPACKAGE=*}
ERRORS+= "Fatal: Use 'env SUBPACKAGE=${SUBPACKAGE} ${MAKE}' instead."
.endif
# There is a transition in progress. When the dust settles,
# the definitive source of documentation to this file's working