How to save and echo variables in a Makefile?

Viewed 17

I have a simple makefile

SHELL := /bin/bash

test:
  VAR='test' && echo ${VAR};

However, this does not exhibit the same behavior as typing this command into a normal shell, and it doesn't echo anything. Not sure what I am missing.

0 Answers
Related