c++ - mingw32-make.exe : Nothing to be done for 'all'

标签 c++ makefile target

当我尝试运行一个 cpp 项目时,我遇到了运行时错误。

编译日志中显示以下消息:

mingw32-make.exe -f "D:\XXXXXXXXXXXXX\Makefile.win" all
mingw32-make.exe: Nothing to be done for 'all'.

在 Makefile 中,我发现:

.PHONY: all all-before all-after clean clean-custom

all: all-before $(BIN) all-after

但是我不明白到底是什么错误,“all”的作用是什么

最佳答案

这不是错误信息。

基本上它告诉您 all 目标(以及,暗示它的所有依赖项——all-beforeall-after以及 BIN 中的任何内容) 已经是最新的,即不需要 make 运行任何命令。

关于c++ - mingw32-make.exe : Nothing to be done for 'all' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25028700/

相关文章:

c++ - int a[5]和int(&a)[5]在模板参数推导上的区别

c++ - stringify 运算符如何扩展 TABS?

html - 链接的属性目标 ="_newtab"

MSBuild - 使用不同参数多次调用目标

c++ - malloc分配的对象动态类型是什么?

c++ - 为什么在 C++ 中使用 <cstdio> 而不是 <stdio.h> 时 "std::printf"和 "printf"都会编译?

c++ - Makefile 错误 - 链接器输入文件未使用

linux - 独立于平台的 Makefile - Windows 和 WSL

makefile - makefile中@rm和rm的区别

iphone - 无法在一部 iPhone 上安装同一应用程序的两个版本