带有pwd输出的Makefile中带有fprint的格式化输出
在我的Makefile中,我有以下内容:带有pwd输出的Makefile中带有fprint的格式化输出,makefile,printf,gnu-make,Makefile,Printf,Gnu Make,在我的Makefile中,我有以下内容: update: cd pkg_one && git fetch && git rebase @printf ' ==> [pkg_one] rebase Done, now in `pwd`\n' 我试图获得与我的printf command一致的pwd结果您可以在单引号的上下文中删除'pwd',使用 update: cd pkg_one && git fetch &am
update:
cd pkg_one && git fetch && git rebase
@printf ' ==> [pkg_one] rebase Done, now in `pwd`\n'
我试图获得与我的printf command一致的
pwd
结果您可以在单引号的上下文中删除'pwd',使用
update:
cd pkg_one && git fetch && git rebase
@printf ' ==> [pkg_one] rebase Done, now in '`pwd`'\n'
或者,使用双引号代替
update:
cd pkg_one && git fetch && git rebase
@printf " ==> [pkg_one] rebase Done, now in `pwd`\n"