BB= YES

PRE_YES=YES

YY=foo

A = $(PRE_$(or $(AA_$(YY)),$(BB),$(CC)))

all:
	echo $A
