makefile_shell

来源:互联网 发布:心蓝抢票软件下载 编辑:程序博客网 时间:2024/05/18 00:11
 

bin/.dummy:
@if (: >> $@ || : > $@) >/dev/null 2>&1; then :; else \
 dir=bin $(MAKEDIR); fi
@: >> $@ || : > $@ # what a fancy emoticon!




如果清空或追加 $@ 失败,就创建dir;然后再次清空或追加$@

2>&1 把stderr的输出转入stdout(以便捕获)

0 0
原创粉丝点击