build - gmake 和 make 有什么区别?

我想了解“gmake”和“make”之间的区别?

在我的 linux 机器上它们是相同的:

% gmake --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

% make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

我猜这在所有平台上都不一样? 有充分的理由使用其中一个吗?
为什么会有这两个名字,有什么历史意义吗?

最佳答案

'gmake' 特指 GNU make。 'make' 是指系统默认的 make 实现;在大多数 Linux 发行版上,这是 GNU make,但在其他 unix 上,它可以指代 make 的其他一些实现,例如 BSD make,或各种商业 unix 的 make 实现。

GNU make 接受的语言是传统 make 实用程序支持的语言的超集。

通过专门使用“gmake”,您可以使用 GNU make 扩展,而不必担心它们会被其他 make 实现误解。

https://stackoverflow.com/questions/1194957/

相关文章:

xml - 防止将引用的程序集 PDB 和 XML 文件复制到输出

shell - 在 Jenkins 中,Execute Shell 如何/何时将构建标记为失败?

build - 编译代码和可执行代码有什么区别?

java - leiningen - 如何为本地 jar 添加依赖项?

build - 去构建 : "Cannot find package" (even though G

build - 什么是构建工具?

xcode - 无法附加到进程 ID Xcode

c# - 我应该使用调试信息编译发布版本 "full"或 "pdb-only"吗?

windows-7 - 如何解决 Nant 0.91 的配置错误?

angular - node_modules/rxjs/internal/types.d.ts(81