Makefile vpath中的V代表什么?

Makefile vpath中的V代表什么?,makefile,vpath,Makefile,Vpath,makefile中的VPATH变量用于指示搜索路径。但其中的“V”代表什么呢 make变量VPATH的值指定make应该搜索的目录列表。通常情况下,目录中应该包含不在当前目录中的必备文件;但是,make使用VPATH作为规则的先决条件和目标的搜索列表 虚拟路径似乎是:虚拟路径 我发现这个链接是关于: 它对VPATH的定义如下: >**Virtual Path - VPATH & vpath** >You can use VPATH (uppercase) to specif

makefile中的
VPATH
变量用于指示搜索路径。但其中的“V”代表什么呢

make变量VPATH的值指定make应该搜索的目录列表。通常情况下,目录中应该包含不在当前目录中的必备文件;但是,make使用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 space
VPATH=src include

>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代表虚拟路径


V是虚拟的,如果有的话。我猜应该是“可变的”,因为它是一个目录列表,可以根据您的规范进行更改。