继续翻译

4.4 Using Wildcard Characters in File Names
===========================================                        A single file name can specify many files using "wildcard characters". The wildcard characters in `make' are `*', `?' and `[...]', the same as in the Bourne shell.  For example, `*.c' specifies a list of all the files (in the working directory) whose names end in `.c'.
                        The character `~' at the beginning of a file name also has special significance.  If alone, or followed by a slash, it represents your home directory.  For example `~/bin' expands to `/home/you/bin'.  If the `~' is followed by a word, the string represents the home directory of the user named by that word.  For example `~john/bin' expands to `/home/john/bin'.  On systems which don't have a home directory for each user (such as MS-DOS or MS-Windows), this functionality can be simulated by setting the environment variable HOME.                        

4.4 在文件名中使用通配符
===========================================
通过使用通配符可以让一个文件名包含很多文件。在makefile中,通配符是 *, ?, [...],和 Bourne shell 一样。例如,*.c 表示 在工作目录中所有扩展名字为 c 的文件。

开始于文件名的符号 ~ 也有特殊的含义。如果单独出现或后面跟一个斜线,它代表你的home 目录。

例如 ~/bin 代表 /home/you/bin 。

如果 ~ 跟在一个单词后面,此单词代表了home 目录下的用户名。例如 ~john/bin 会扩展为 /home/john/bin。

在没有给每个用户分配 home 目录的系统(例如 MS-DOS 或者 MS-Windows),这个功能通过设置环境变量 HOME 来模拟。

后文待续

转载于:https://www.cnblogs.com/gaojian/archive/2012/09/19/2693103.html

GNU make manual 翻译(八十二)相关推荐

  1. GNU make manual 翻译(八十八)

    继续翻译 4.5.1 `VPATH': Search Path for All Prerequisites ---------------------------------------------- ...

  2. GNU make manual 翻译(四十二)

    继续翻译 When `make' processes an `include' directive, it suspends reading of the containing makefile an ...

  3. GNU make manual 翻译(五十八)

    继续翻译 Variable Assignment ------------------- Variable definitions are parsed as follows: IMMEDIATE = ...

  4. GNU make manual 翻译(三十八)

    继续翻译 复制代码 If `make' finds none of these names, it does not use any makefile. Then you must specify a ...

  5. GNU make manual 翻译(六十九)

    Rules undergo secondary expansion in makefile order, except that the rule with the recipe is always ...

  6. GNU make manual 翻译(四十)

    继续翻译 Extra spaces are allowed and ignored at the beginning of the line, but the first character must ...

  7. GNU make manual 翻译(八十七)

    继续翻译 4.5 Searching Directories for Prerequisites =========================================== For lar ...

  8. GNU make manual 翻译(三十)

    继续翻译 复制代码 A rule such as this should not be placed at the beginning of the   makefile, because we do ...

  9. 八十二、Python | Leetcode贪心算法系列

    @Author:Runsen @Date:2020/7/5 人生最重要的不是所站的位置,而是内心所朝的方向.只要我在每篇博文中写得自己体会,修炼身心:在每天的不断重复学习中,耐住寂寞,练就真功,不畏艰 ...

最新文章

  1. 基础004:R语言数据处理和变换——dplyr
  2. python地图热力图是什么意思_python实现输入的数据在地图上生成热力图效果
  3. 创建型设计模式 之 单例模式
  4. Leetcode 167. 两数之和 II - 输入有序数组 解题思路及C++实现
  5. 彻底理解被称为二叉树神级遍历的莫里斯(Morris)算法
  6. python reduce函数怎么用的_我如何仅通过使用reduce函数在python中创建单...
  7. 2个线程共同处理冒泡排序 Linux 双线程处理
  8. 阶段3 3.SpringMVC·_05.文件上传_5 文件上传之跨服务器上传分析和搭建环境
  9. 凸包算法-流程及代码简述
  10. Android Systrace 使用详解
  11. Thinkpad E475换装Win7后,网络连接无故中断无法再次连接的问题
  12. Win7 安装.Net 4.7.2 失败
  13. 爬取大众点评网页端店铺评论
  14. 批量注释基因到基因座上(map gene to locus)
  15. 【MATLAB图像处理实用案例详解(1)】—— 基于直方图优化的图像去雾技术
  16. 侍魂胧月传说怎么在电脑上玩 侍魂胧月传说电脑版玩法攻略
  17. 数据结构之稀疏数组队列
  18. MOOC和网上学习平台整理
  19. 电源自动测试系统NSAT-8000,精准高速可靠的电源测试设备
  20. MATLAB中常用的几种随机数生成函数

热门文章

  1. OpenJDK9 Hotspot :Zero 解释器 - BytecodeInterpreter
  2. 经典案例之MouseJack
  3. 自定义DataAnnotations
  4. ./configure,make,make install的作用(转)
  5. C++学习之路: 智能指针入门
  6. erlang环境变量——HOME
  7. 可变化的鸿蒙武器,DNF2018史诗改版大全 武器套装改版属性介绍
  8. JavaScript字符串方法——持续补充
  9. 团队的远程管理_不管理远程团队的7种方法
  10. 什么是git_什么是Git?