Makefile中变量定义中末尾不能有空格

我在Makefile中添加了

ifndef EMASSDIR
EMASSDIR=$(shell emassTop.py)
endif

但是emassTop.py)后面不小心加入了空格,造成出现“Make error xxx Is a directory”的错误提示,最后仔细check,才解决问题。

原文地址:https://www.cnblogs.com/tangxiaosheng/p/5885415.html