I have many variables called allow_xxx, where xxx is a function.
I would like to create a variable inside my makefile with all valid values.
This is what I am trying 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 it right?
Thanks!
source share