diff options
Diffstat (limited to 'regress/pkg-options/files/groups.mk')
-rw-r--r-- | regress/pkg-options/files/groups.mk | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/regress/pkg-options/files/groups.mk b/regress/pkg-options/files/groups.mk new file mode 100644 index 00000000000..16b2a65c14d --- /dev/null +++ b/regress/pkg-options/files/groups.mk @@ -0,0 +1,25 @@ +# $NetBSD: groups.mk,v 1.1 2005/06/02 20:38:51 dillo Exp $ +# +# This file tests option groups (PKG_OPTIONS_REQUIRED_GROUPS and +# PKG_OPTIONS_OPTIONAL_GROUPS). +# + +MAKECONF= /dev/null + +PKG_OPTIONS_VAR= PKG_OPTIONS.foo +PKG_SUPPORTED_OPTIONS= single +PKG_OPTIONS_REQUIRED_GROUPS= abc def +PKG_OPTIONS_OPTIONAL_GROUPS= ghi +PKG_OPTIONS_GROUP.abc= a b c +PKG_OPTIONS_GROUP.def= d e f +PKG_OPTIONS_GROUP.ghi= g h i + +PKG_OPTIONS.foo= a b -a +PKG_OPTIONS.foo+= d e f +PKG_OPTIONS.foo+= g h i -i -h + +.include "../../mk/bsd.options.mk" + +.PHONY: test +test: + echo ${PKG_OPTIONS:M*:Q} |