如何在makefile中抑制回声?
发布时间:2020-12-16 09:23:54 所属栏目:百科 来源:网络整理
导读:我在Makefile中有以下PHONY目标 install: echo /usr/bin/shelldecrypt must be writable cp shelldecrypt /usr/bin 当我运行目标时,它会显示正在执行的命令 提示 make install 输出是 echo /usr/bin/shelldecrypt must be writable /usr/bin/shelldecrypt mu
我在Makefile中有以下PHONY目标
install: echo /usr/bin/shelldecrypt must be writable cp shelldecrypt /usr/bin 当我运行目标时,它会显示正在执行的命令 提示> make install 输出是 echo /usr/bin/shelldecrypt must be writable /usr/bin/shelldecrypt must be writable cp shelldecrypt /usr/bin 按我的意思输出它 /usr/bin/shelldecrypt must be writable cp shelldecrypt /usr/bin 解决方法
你可以在你的命令之前加上“@”来压制那个回声
install: @echo /usr/bin/shelldecrypt must be writable cp shelldecrypt /usr/bin (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |