I've got the following in my Makefile,
dosomething:
ifeq (, $(shell which python))
$(error "Python not installed, please download and install Python to create database")
else
cd myfolder; python myfile.py
endif
When I run make dosomething, it throws the error telling me to download and install python. But when I do which python in my shell, it says /usr/bin/python
Not sure what is going on here
ifeq,elseandendiflines begin with a tab character? If so, try removing it.$(info $(shell which python)).