mode = p
install:
@echo mode is $(mode)
ifeq ($(mode),"p")
@echo mode is production
else
@echo mode is development
endif
I want to compare the character variable in bash script of the make file. But It gives me the following error,
mode is d
ifeq (d,"p")
/bin/sh: 1: Syntax error: word unexpected (expecting ")")