Makefile with source get error `No such file or directory`

I have a really simple Makefile

one that does source

for setting ENV variables. But it doesn't work if I call it fromMakefile

I am getting this error

make dev
source ./bin/authenticate.sh
make: source: No such file or directory
make: *** [dev] Error 1

      

the script exists.

If I run this on the command line it works.

source ./bin/authenticate.sh
Works!

      

This is my Makefile

test:
    pytest -s

dev:
    source ./bin/authenticate.sh

      

I am using OSX. I'm not sure if this will make a difference.

+3


source to share





All Articles