首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >vpath中的V代表什么?

vpath中的V代表什么?
EN

Stack Overflow用户
提问于 2016-01-23 03:17:36
回答 1查看 585关注 0票数 2

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

make变量VPATH的值指定了应该搜索的目录列表。大多数情况下,期望目录包含不在当前目录中的先决条件文件;但是,请将VPATH用作规则的先决条件和目标的搜索列表。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-01-23 04:01:57

VPATH似乎是:虚拟路径

我找到了关于:制作的链接

它定义VPATH如下:

代码语言:javascript
复制
>**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

代码语言:javascript
复制
>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代表虚拟路径

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34959208

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档