zoukankan      html  css  js  c++  java
  • 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 变量中一样。

    后文待续

  • 相关阅读:
    图像滤波与OpenCV中的图像平滑处理
    OpenCV创建轨迹条,图片像素的访问
    模板类和友元的总结和实例验证
    C++中运算符重载
    C++之Stack模板类
    C++中explicit关键字的作用
    #ifdef-#endif的作用及其使用技巧
    ZOJ 3170 Friends
    ZOJ 3713 In 7-bit
    HDU 1421 搬寝室
  • 原文地址:https://www.cnblogs.com/gaojian/p/2693796.html
Copyright © 2011-2022 走看看