I'm new to Makefile and I'm having some issues reading variables in the Makefile. My original issue is that in the below command the env variable is not read.
terraform-utils terraform -chdir="layers/network" init -backend-config="bucket=$(TF_VAR_tf_bucket_name)"
But I think I can boil down the issue better in a screenshot...
In the given screenshot, a test make command is set up to set an env variable and then read the variable. Now, these two commands when executed in order in bash gives intended result (box #1). But when executing the same sequence of commands in Makefile, the echo command doesn't show anything. I believe this may be related to my actual issue. Please let me know if I'm missing something fundamental here.