为什么 freebsd ports makefile 中的 include 前面有一个点?他们用什么牌子的?
我正在查看 FreeBSD 的 ports tarball 中的主 makefile。
我看到以下 include 指令:
PORTSTOP= yes
.include <bsd.port.subdir.mk>
index:
@rm -f ${INDEXDIR}/${INDEXFILE}
@cd ${.CURDIR} && make ${INDEXDIR}/${INDEXFILE}
并且想知道为什么 include 前面有一个句点。
另外,他们在 FreeBSD 中使用 GNU Make 吗?
I was looking through the main makefile in the ports tarball of FreeBSD.
I saw the following include directive:
PORTSTOP= yes
.include <bsd.port.subdir.mk>
index:
@rm -f ${INDEXDIR}/${INDEXFILE}
@cd ${.CURDIR} && make ${INDEXDIR}/${INDEXFILE}
and was wondering why a period was in front of include.
Also, are they using GNU Make in FreeBSD?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
FreeBSD 有自己的 make 工具,它不是 GNU make。它符合 posix 标准,但有多个扩展,通常简称为 BSD make。
最初的 .但这只是 make 命令的某些构造的方式。
因此,它只是将某些结构与 make 语言的其余部分区分开来的一种方法,与 C/C++ 中用于预处理器指令的“#”不同。
FreeBSD have their own make tool, it's not GNU make. It's posix compliant but have several extensions, and is often just called BSD make.
The initial . though is just the way certain constructs of the make commands are made.
So, it's just a way of distinguising certain constructs from the rest of the make language, not unlike the `#`` in C/C++ used for preprocessor directives.
FreeBSD 使用 BSD 版本的 make,其他 BSD 也使用该版本(有时稍作修改)。例如,OpenBSD 和 NetBSD 包含在 BSD make 中。
make 程序符合 POSIX 标准,但当然不会努力模拟 GNU 功能或除了 POSIX 标准之外的任何相似之处
FreeBSD uses the BSD version of make which other BSDs use also(sometimes with slight modifications). For instance, OpenBSD and NetBSD are included with BSD make.
The make program is POSIX compliant but of course does not strive to emulate GNU features or be anything alike other than POSIX compliancy