This code doesn't work:
$ cat Makefile
dev:
AWS_PROFILE=foobar-$@ echo $$AWS_PROFILE
demo:
AWS_PROFILE=foobar-$@ echo $$AWS_PROFILE
Based on my target, I want the AWS_PROFILE correctly setup for the commands in the target. How does one achieve this with GNU Make 4.2.1
?