linux – 使用$(basename $(notdir $@))了解Makefile
发布时间:2021-03-30 19:01:41 所属栏目:Linux 来源:互联网
导读:我正在尝试了解一个Makefile,但是我不明白配方的意见. ......sample.a: cd ../$(basename $(notdir $@)) make ##i dont understand this...... 我还是个新手.你可以给我一个很简单的解释: $(basename $(notdir $@)) 如果你打破它: $(notdir $@)从文件名
我正在尝试了解一个Makefile,但是我不明白配方的意见. ... ... sample.a: cd ../$(basename $(notdir $@)) && make ##i don't understand this ... ... 我还是个新手.你可以给我一个很简单的解释:
解决方法如果你打破它:$(notdir $@)从文件名中删除路径,只留下文件名(所以/x/y/foo.a变成foo.a) 这里有一个体面的参考:http://www.gnu.org/software/make/manual/html_node/File-Name-Functions.html (编辑:鄂州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 如何在Linux Ubuntu上配置Cassandra的访问权限
- unable to locate package open-vm-tools-desktop
- linux – 在Ubuntu服务器12.04.4上编译Node.js v0.11.12-re
- Linux / Unix Command: bunzip2--reference
- 基于哪个Linux将内存从RAM交换到交换文件的具体条件是什么?
- 避免linux内存不足的应用程序拆解
- c – 如何以编程方式获取linux中设备/分区的uuid?
- linux – make / home / tmp noexec nodev没有单独的patiti
- linux – 有没有办法让BIND 9自动将其缓存转储到文件中,然后
- AIX 5.3(ld-xlc)等效选项Linux(ld-gcc)-rpath