【发布时间】:2020-08-18 08:52:06
【问题描述】:
我正在了解makefiles。我写了一个简单的 hello world,比如 makefile,只命名为 makefile2,但是当我运行 mingw32-make makefile2 时,我得到:
Nothing to be done for 'makefile2'.
当我只运行mingw32-make(不提供文件名)时,它可以工作。
我的问题是,在文件夹中只有一个 makefile 并且运行它我们根本不提供文件名吗?
是否可以运行提供名称的特定makefile?
PS。我在 Windows 10
上使用 MinGW【问题讨论】:
-
您可能会发现阅读文档很有用:gnu.org/software/make/manual/html_node/Running.html 和 gnu.org/software/make/manual/html_node/Options-Summary.html 这通常比搜索 Web 更快。而且你可能会学到一些你还不知道要问的事情:)。