首页 程序设计 clearmake和gnu make都可以检测出来target之间的循环依赖

clearmake和gnu make都可以检测出来target之间的循环依赖

[jialiang@ht191w tmp]$ make -f mk clean # gnu make make: Circular target – clean dependency dropped. echo clean is called clean is called echo clean running clean running echo current dir is:

[jialiang@ht191w tmp]$ make -f mk clean # gnu make

make:
Circular target <- clean dependency dropped.

echo “clean is called”

clean is called

echo “clean running”

clean running

echo “current dir is: ”

current dir is:

pwd

/home/jialiang/tmp

[jialiang@ht191w tmp]$ cmake -f mk clean # clearmake


clearmake: Warning: Cycle in dependency graph?


clearmake: Warning: “clean” was already seen. echo “clean is called” clean is called echo “clean running” clean running echo “current dir is: ” current dir is: pwd /home/jialiang/tmp [jialiang@ht191w tmp]$ cat mk # Marco/Variable define a = “great” # Target/Dependency define all: echo “great” .PHONY: clean clean: target echo “clean running” ifeq ($(a),great) echo “equals” endif ifneq ($(a),dd) echo “current dir is: ” pwd endif target: clean echo “clean is called” # this line is useless,unless you put it the first line when you start define target default: clean

本文来自网络,不代表云浮站长网立场。转载请注明出处: https://www.0766zz.com/html/zhonghe/sheji/20200901/8757.html
上一篇
下一篇

作者: dawei

【声明】:云浮站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。

为您推荐

返回顶部