GNU make manual 翻译(八十九)
继续翻译
4.5.2 The `vpath' Directive --------------------------- Similar to the `VPATH' variable, but more selective, is the `vpath' directive (note lower case), which allows you to specify a search path for a particular class of file names: those that match a particular pattern. Thus you can supply certain search directories for one class of file names and other directories (or none) for other file names. There are three forms of the `vpath' directive: `vpath PATTERN DIRECTORIES' Specify the search path DIRECTORIES for file names that match PATTERN. The search path, DIRECTORIES, is a list of directories to be searched, separated by colons (semi-colons on MS-DOS and MS-Windows) or blanks, just like the search path used in the `VPATH' variable.
4.5.2 vpath 指令
---------------------------
和 VPATH 变量类似,但是有更多的选择余地的,是 vpath 指令(注意小写字符), 它允许你为一个特定类别的文件名指定搜索路径: 那些可以匹配特定模式者。这样你可以为某种类别的文件指定一个搜索路径,为其余的文件指定其他的搜索路径。
可以有三种形式的 vpath 指令
vpath PATTERN DIRECTORIES
制定满足特定的模式的文件名的搜索路径。
The search path, DIRECTORIES, is a list of directories to be
searched, separated by colons (semi-colons on MS-DOS and
MS-Windows) or blanks, just like the search path used in the
`VPATH' variable.
此搜索路径--DIRECTORIES,是被搜索的目录的列表,用冒号分隔(在MS-DOS和MS-Windows是分号)或者用空格分隔,就和在 VPATH 变量中一样。
后文待续