From b4ae5ad32d8b7a07f0fd5aef93d8427a24e6cd18 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 24 May 1999 20:39:35 +0000 Subject: Change {ONLY,NOT}_FOR_{ARCH,OPSYS} format to {ONLY,NOT}_FOR_PLATFORM pattern match format. Minor pkglint along the way. --- mk/bsd.pkg.mk | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'mk/bsd.pkg.mk') diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 77a659caaa8..a805b95da30 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.272 1999/05/24 18:42:00 tv Exp $ +# $NetBSD: bsd.pkg.mk,v 1.273 1999/05/24 20:39:50 tv Exp $ # # This file is in the public domain. # @@ -17,16 +17,6 @@ # NEVER override the "regular" targets unless you want to open # a major can of worms. -##### Transitional compatibility: ##### -ONLY_FOR_OPSYS?= * -ONLY_FOR_ARCHS?= * -.for __opsys__ in ${ONLY_FOR_OPSYS} -.for __arch__ in ${ONLY_FOR_ARCHS} -ONLY_FOR_PLATFORM+= ${__opsys__}-*-${__arch__} -.endfor -.endfor -NOT_FOR_PLATFORM+= ${NOT_FOR_OPSYS:S/$/-*-*/} ${NOT_FOR_ARCHS:S/^/*-*-/} - ##### Include any preferences, if not already included, and common definitions .include "../../mk/bsd.prefs.mk" @@ -618,6 +608,13 @@ EXTRACT_ONLY?= ${DISTFILES} @${FALSE} .endif +.if defined(ONLY_FOR_ARCHS) || defined(NOT_FOR_ARCHS) \ + || defined(ONLY_FOR_OPSYS) || defined(NOT_FOR_OPSYS) +.BEGIN: + @${ECHO_MSG} 'ONLY/NOT_FOR_ARCHS/OPSYS are deprecated and must be replaced with ONLY/NOT_FOR_PLATFORM.' + @${FALSE} +.endif + # Note this has to start with a capital letter (or more accurately, it # shouldn't match "[a-z]*"), see the target "delete-package-links" below. PKGREPOSITORYSUBDIR?= All -- cgit v1.2.3