- 函数调用: $(<function> <arguments>);思考如何定义一个“空格”变量;bar:=$(subst $(space),$(comma),$(foo)):把$(foo)中$(space)换成$(comma);
- 字符串处理函数: subst, patsubst, strip, findstring, filter, filter-out, sort, word, wordlist, words, firstword;
- 文件名操作函数: dir, notdir, suffix, basename, addsuffix, addprefix, join;
- foreach函数
- call函数:re:=$(2) $(1);$(call re,a,b)
- if函数
- origin函数告诉变量是哪里来的: “undefined”, “default”, “environment”, “file”, “command line”, “override”, “automatic”
- shell函数:等同于反引号“`”
- 控制函数:error,warning
- make命令 退出码:0——正常;1——任何错误;2——
- “-f”或是“--file”参数(“--makefile”参数也行)指定执行相应makefile。
- make目标中的一些 规范: “all”, clean, “install”, print”, “tar”, “dist”, TAGS”, “check”和“test”
- 常用make规则检查参数:1, “-n” “--just-print” “--dry-run” “--recon”2, “-t” “--touch”3, “-q” “--question” 4, “-W <file>;” “--what-if=<file>;” “--assume-new=<file>;” “--new-file=<file>;”
- make命令参数
posted @
2012-03-20 10:12
flyfisher
阅读(
126)
评论()
收藏
举报