linux $ 类型变量 及Makefile 中 $ 类型变量的含义

Shell 命令中:

  $$: shell pid 

  $!: pid of the last process running in shell 

  $?: shell command return code 

  $-: the set flags

  $* args list

      $@ args list

      $#  args number

Makefile:

  自动化变量$?代表依赖文件列表中被改变过的所有文件。
  自动化变量$^代表所有通过目录搜索得到的依赖文件的完整路径名(目录 + 一般文件名)列表。
  自动化变量$@代表规则的目标。
  自动化变量$<代表规则中通过目录搜索得到的依赖文件列表的第一个依赖文件。
  自动化变量$(@D) 

posted @ 2015-01-20 20:46  Yuangui  阅读(279)  评论(0编辑  收藏  举报