我想了解“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/