Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Makefile what is "SHELL = bash"

Tags:

makefile

I'm newbie with shell script.

I saw some shell script code here https://github.com/weidai11/cryptopp/blob/master/GNUmakefile

I just want to know what does it mean~

SHELL = bash

please let me know where the documentation is.

like image 216
Beauspiring Avatar asked Oct 19 '25 09:10

Beauspiring


1 Answers

What you saw isn't a shell script, but a Makefile.

SHELL is the Makefile variable that sets the preferred shell to use. The default on is /bin/sh, so if you need Bash features, you might have to set this variable.

Documentation here.

If it was a shell-script, SHELL would be an environment variable that points to the the user's default shell.

like image 74
greymouser Avatar answered Oct 21 '25 05:10

greymouser