Makefile无法使用~/.bashrc中alias定义的命令别名,因为每个人的bashrc文件不同,makefile如果依赖于bashrc则通用性会受影响。最好将所有需要的信息都写到makefile中。 参见相似问题: https://www.xuebuyuan.com/2223464.html