随笔分类 -  gnu make

摘要:1.文本处理和分析函数 $(subst from,to,text) 替换 $(patsubst pattern,replacement,text) 模式替换,可用%(只用第一个%有用),如 $(patsubst %.c,%.o,x.c.c bar.c),结果 ‘x.c.o bar.o’ $(stri 阅读全文
posted @ 2017-11-08 17:59 Jokeyyu 阅读(999) 评论(0) 推荐(0)
摘要:define two_commandsecho 1111111111111echo 22222222222endef 相当于 two_commands = echo 1111111111111;echo 22222222222 可以直接调用$(two_commands) 阅读全文
posted @ 2017-11-08 16:32 Jokeyyu 阅读(839) 评论(0) 推荐(0)
摘要:1.symbol "$@" is for target(now is edit), "$^" is for the whole prerequisties(now is "Hello.java Hi.java Work.java"), "$<" is for the first prerequist 阅读全文
posted @ 2017-11-08 15:04 Jokeyyu 阅读(514) 评论(0) 推荐(0)