Use .undef per variable

Attempting to expand a variable to a list of vars to .undef
does not actually work.

Reviewed by:	bdrewery
Differential Revision:	D17251
This commit is contained in:
Simon J. Gerraty 2019-01-15 23:35:53 +00:00
parent b20d0a438e
commit fee919421d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=343066

View file

@ -1,5 +1,5 @@
# $FreeBSD$
# $Id: dirdeps-options.mk,v 1.8 2018/05/29 22:31:21 sjg Exp $
# $Id: dirdeps-options.mk,v 1.9 2018/09/20 00:07:19 sjg Exp $
#
# @(#) Copyright (c) 2018, Simon J. Gerraty
#
@ -54,7 +54,8 @@ DIRDEPS += ${DIRDEPS.$o.${MK_$o:U}:U}
DIRDEPS := ${DIRDEPS:O:u}
# avoid cross contamination
.for o in ${DIRDEPS_OPTIONS:tu}
.undef DIRDEPS.$o.yes DIRDEPS.$o.no
.undef DIRDEPS.$o.yes
.undef DIRDEPS.$o.no
.endfor
.else
# whether options are enabled or not,