跟我一起写 Makefile 作者:陈皓
七、环境变量.........................................................................................................................38
八、目标变量.........................................................................................................................39
九、模式变量.........................................................................................................................40
第八部分 使用条件判断...............................................................................................................40
一、示例.................................................................................................................................40
二、语法.................................................................................................................................42
第九部分 使用函数.......................................................................................................................43
一、函数的调用语法.............................................................................................................44
二、字符串处理函数.............................................................................................................44
1、subst.......................................................................................................................44
2、patsubst.................................................................................................................45
3、strip.........................................................................................................................45
4、findstring...............................................................................................................46
5、filter.........................................................................................................................46
6、filter-out.................................................................................................................46
7、sort..........................................................................................................................47
8、word........................................................................................................................47
9、wordlist..................................................................................................................47
10、words....................................................................................................................47
11、firstword..............................................................................................................48
12、字符串函数实例....................................................................................................48
三、文件名操作函数.............................................................................................................48
1、dir.............................................................................................................................48
2、notdir......................................................................................................................48
3、suffix.......................................................................................................................49
4、basename..............................................................................................................49
5、addsuffix................................................................................................................49
6、addprefix...............................................................................................................49
7、join...........................................................................................................................50
四、foreach 函数................................................................................................................50
五、if 函数 ............................................................................................................................50
六、call函数..........................................................................................................................51
七、origin函数 .....................................................................................................................51
“undefined”.................................................................................................................52
“default”.......................................................................................................................52
“file”...............................................................................................................................52
“command line”.........................................................................................................52
“override” ....................................................................................................................52
“automatic”.................................................................................................................52
八、shell函数 .......................................................................................................................53
九、控制make的函数..........................................................................................................53
1、error........................................................................................................................53
2、warning..................................................................................................................54
第十部分 make 的运行..............................................................................................................54
第 3 页共 78 页 2005 年 10 月 14 日整理:祝冬华
评论1
最新资源