Reputation: 31
Here is the makefile, the error is coming from line 5 ifeq($(PROD),all)
APP=all
LOC=en_US
html: loc
ifeq($(APP),all)
@for app in apps/*; do echo "Building $app"; grunt --prod $app --loc $(LOC); done
else
@grunt --prod $(APP) --loc $(LOC)
endif
loc:
ifeq($(LOC),en_US)
@echo "Building $(LOC)"
else ifeq($(LOC),zh_CN)
@echo "Building $(LOC)"
else
@echo "Invalid LOC $(LOC)" && exit 1;
endif
From what I can tell from other stackexchange answers, this issue usually occurs when there are missing tabs, but I have checked that there are tabs for all of the sh
code that needs running
Upvotes: 1
Views: 327
Reputation: 31
Found it, there have to be spaces after ifeq
statements.
html: loc
ifeq ($APP,all)
Upvotes: 2