gpt4 book ai didi

build - gmake 和 make 有什么区别?

转载 作者:IT老高 更新时间:2023-10-28 11:06:46 25 4
gpt4 key购买 nike

我想了解“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 实现误解。

关于build - gmake 和 make 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1194957/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com