当前位置:网站首页>8. get directory function / get file function -dir / -notdir
8. get directory function / get file function -dir / -notdir
2022-06-21 18:39:00 【Qimu king · Prince】
1. Take the directory function —dir.
$(dir <names...>)
1.1 Introduce
$(dir <names...>)
name : Take the directory function ——dir.
function : From the file name sequence <names> Take out the table of contents . The directory section refers to the last backslash (“/”) Before
Part of . If there is no backslash , Then the return “./”.
return : Return the file name sequence <names> The table of Contents section of .
1.2 Example

all:
$(dir dir/dir_test.c filename)
# dir/ ./

2. Take file function —notdir
2.1 Introduce
$(notdir <names...>)
name : Take file function ——notdir.
function : From the file name sequence <names> Take out the non directory part of . The non directory part refers to the last backslash (“ /”)
The next part .
return : Return the file name sequence <names> The non catalog part of .
2.2 Example

$(notdir dir/dir_test.c filename)
# The return value is “dir_test.c filename”

边栏推荐
- Some basic features of typescript
- Day18Qt信号与槽2021-10-29
- Byte Jump propose un nouveau type de réseau léger et efficace, mobovit, qui surpasse GhostNet et mobilenetv3 dans la classification, la détection et d'autres tâches CV!
- Day21Qt鼠标事件2021-11-01
- 揭秘支撑百度搜索、Feed、小程序三大业务的MVVM框架设计思想,San 核心人员倾力打造
- Day10QRadiobutton2021-09-24
- 协同过滤(Collaborative Filtering)
- Node modular management
- 7.去空格函数-strip
- Cann training camp Season 2 - the opening ceremony | it starts at 7:30 tonight on time. You can't miss it!
猜你喜欢
随机推荐
Generic type checking for typescript
Cann training camp Season 2 - the opening ceremony | it starts at 7:30 tonight on time. You can't miss it!
7.去空格函数-strip
有了mitmdump还不赶紧扔掉Charles
URL module of node
SVG+Canvas粒子动态效果
Day15Qt中字符串的常用操作2021-10-20
Paper notes ACL 2022 unified structure generation for universal information extraction
R语言 bug?报错?关于亚变量0、1 结局outcome,outcome变量经过factor和numeric过程,改变了原始内容?
180亿,苏州诞生一个超级母基金
Can I use line as a product term in the cable industry? Generally not used
Typescript的通用类型检查
I got a pay cut in disguise
新一代稳定性测试利器Fastbot
STATA 速查备份(个人笔记)
WXML模板语法、WXSS模板样式、全局配置、页面配置和网络数据请求
epoll+threadpool高并发网络IO模型的实现
会议聊天室--开发文档
Basic data type and structure data type of TS
如何把1000随机分配成10个数









