假设在 FreeBSD 上,应用程序需要使用 GNU make (gmake) 进行编译,而不是标准系统 make。如果 Makefile 不是用 gmake 编译的,是否有任何指令可以放入 Makefile 中以停止执行它并打印错误?
调用你的 makefileGNUmakefile http://www.gnu.org/software/make/manual/make.html#Makefile-Names。 GNU Make 会找到它,但其他品牌找不到。
The first name checked, GNUmakefile, is not recommended for most makefiles. You should use this name if you have a makefile that is specific to GNU make, and will not be understood by other versions of make. Other make programs look for makefile and Makefile, but not GNUmakefile.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)