这是makefile,错误来自第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
从我从其他stackexchange答案中可以看出,这个问题通常在缺少选项卡时发生,但我检查了所有需要运行的sh
代码都有选项卡
答案 0 :(得分:2)
找到它,ifeq
语句后必须有空格。
html: loc
ifeq ($APP,all)