I have tried to execute a simple make file with if loop condition
PROJDIR:=..
$(info TEXT selected is $(TEXT))
if [ -d "$(PROJDIR)/test" ]; then
BUILDTOOLDIR?=$(PROJDIR)/test
fi
After executing , i am getting error
Makefile:5: *** missing separator. Stop.
I have searched some of the similar query
Makefile:6: *** missing separator. Stop
makefile:4: *** missing separator. Stop
I have tried some of the solutions
- With tabs.
- with slashes
/
But nothing got worked for me . Any help ? Something i have missed here ?