From af5c4c5437a1c8db3d34fccce9e5e6c54bba1952 Mon Sep 17 00:00:00 2001 From: espie Date: Sun, 19 Dec 2004 12:20:12 +0000 Subject: [PATCH] verify the spelling of clean options. --- infrastructure/mk/bsd.port.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/infrastructure/mk/bsd.port.mk b/infrastructure/mk/bsd.port.mk index 0daf2df800e..96f25e5a8fb 100644 --- a/infrastructure/mk/bsd.port.mk +++ b/infrastructure/mk/bsd.port.mk @@ -1,6 +1,6 @@ #-*- mode: Makefile; tab-width: 4; -*- # ex:ts=4 sw=4 filetype=make: -# $OpenBSD: bsd.port.mk,v 1.670 2004/11/28 11:44:00 espie Exp $ +# $OpenBSD: bsd.port.mk,v 1.671 2004/12/19 12:20:12 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 $ # @@ -190,6 +190,14 @@ _clean+=fake .if ${_clean:L:Mforce} _clean+=-f .endif +# check that clean is clean +_okay_words=depends work fake -f flavors dist install sub packages package \ + readme bulk +.for _w in ${_clean:L} +. if !${_okay_words:M${_w}} +ERRORS+="Fatal: unknown clean command: ${_w}" +. endif +.endfor NOMANCOMPRESS?= Yes DEF_UMASK?= 022