vpath中的V代表什么?
What does the V in vpath stand for?
makefile 中的VPATH
变量用于指示搜索路径。但是里面的"V"到底代表什么?
The value of the make variable VPATH specifies a list of directories that make should search. Most often, the directories are expected to contain prerequisite files that are not in the current directory; however, make uses VPATH as a search list for both prerequisites and targets of rules.
VPATH 好像是:虚拟路径
我发现这个 link 关于:gcc_make
这样定义 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 = 源包含
>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
此 second link 确认:
VPATH stands for Virtual path
makefile 中的VPATH
变量用于指示搜索路径。但是里面的"V"到底代表什么?
The value of the make variable VPATH specifies a list of directories that make should search. Most often, the directories are expected to contain prerequisite files that are not in the current directory; however, make uses VPATH as a search list for both prerequisites and targets of rules.
VPATH 好像是:虚拟路径
我发现这个 link 关于:gcc_make
这样定义 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 = 源包含
>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
此 second link 确认:
VPATH stands for Virtual path