makefile中的VPATH变量用于指示搜索路径。但是其中的"V“到底代表什么呢?
make变量VPATH的值指定了应该搜索的目录列表。大多数情况下,期望目录包含不在当前目录中的先决条件文件;但是,请将VPATH用作规则的先决条件和目标的搜索列表。
发布于 2016-01-23 04:01:57
VPATH似乎是:虚拟路径
我找到了关于:制作的链接
它定义VPATH如下:
>**Virtual Path - VPATH & vpath**
>You can use VPATH (uppercase) to specify the directory to search for dependencies and target files. For example,
># Search for dependencies and targets from "src" and "include" directories
># The directories are separated by spaceVPATH = src
>You can also use vpath (lowercase) to be more precise about the file type and its search directory. For example,
># Search for .c files in "src" directory; .h files in "include" directory
># The pattern matching character '%' matches filename without the extension
>vpath %.c src
>vpath %.h include此第二环节确认:
VPATH代表虚拟路径
https://stackoverflow.com/questions/34959208
复制相似问题