其他分享
首页 > 其他分享> > makefile

makefile

作者:互联网

TIP1:For循环的括号

makefile编辑成下面这样,输出./aaa ./bbb

list = aaa bbb

test:
  @for i in $(list); do (cd ./$$i && pwd) ;done

makefile编辑成下面这样,输出./aaa ./aaa/bbb

list = aaa bbb

test:
  @for i in $(list); do cd ./$$i && pwd ;done

 

标签:do,aaa,makefile,list,bbb,test
来源: https://www.cnblogs.com/xiaoconghua/p/16023244.html