I have lots of variables called allow_xxx where xxx is a feature.
I would like to create a variable inside my makefile with all values that are allowed.
This is what I try to do:
allow_feat1 := 1
allow_feat2 := 1
allow_feat3 := 1
list_features := feat1 feat2 feat3
allowed := $(foreach V, $(list_features), $(ifeq ($(allow_$V),1),$V))
This does not work... Any idea how to do this properly?
Thanks !