Assign default values to a makefile
#!make
test:
echo $(or $(MSG), 'No message')
Without a value:
$ make test
echo 'No message'
No message
With a value:
$ make test MSG=🤮
echo 🤮
🤮
Assign default values to a makefile
#!make
test:
echo $(or $(MSG), 'No message')
Without a value:
$ make test
echo 'No message'
No message
With a value:
$ make test MSG=🤮
echo 🤮
🤮