wildcard notdir patsubst
来源:互联网 发布:爱淘宝 1元红包 编辑:程序博客网 时间:2024/06/05 08:07
当前目录下建立一个文件夹sbudir,分别在当前目录与subdir中新建a.c,b.c与sa.c,sb.c四个文件。
写一makefile文件如下:
src=$(wildcard *.c ./subdir/*.c)
dir=$(notdir $(src))
obj=$(patsubst %.c,%.o,$(dir))
all:
@echo $(src)
@echo $(dir)
@echo $(obj)
make
结果如下:
[shaowh@MainServer patsubst_test]$ make
a.c b.c ./subdir/sa.c ./subdir/sb.c
a.c b.c sa.c sb.c
a.o b.o sa.o sb.o
[shaowh@MainServer patsubst_test]$ ls
a.c b.c makefile subdir
只是产生了一个列表,文件无变化。
- patsubst notdir wildcard 详解
- wildcard notdir patsubst
- wildcard notdir patsubst
- addprefix wildcard notdir patsubst
- wildcard notdir patsubst eval
- makefile中wildcard notdir patsubst
- Makefile之wildcard,notdir,patsubst
- Makefile wildcard notdir patsubst 简介
- makefile中的patsubst, wildcard, notdir
- Makefile 笔记:wildcard 、notdir、patsubst
- Makefile wildcard notdir patsubst 简介
- Makefile wildcard notdir patsubst 简介
- makefile之wildcard,notdir,patsubst
- makefile ——wildcard notdir patsubst
- makefile 文件中得wildcard notdir patsubst
- makefile中的notdir,wildcard和patsubst
- makefile中的notdir,wildcard和patsubst
- Makefile学习笔记-wildcard notdir patsubst用法
- Oracle的几个NULL函数
- 修改注册表实现禁用/启用USB
- XSLT
- 元旦快乐
- 2009年的最后一天,辞旧迎新!
- wildcard notdir patsubst
- 使用mysqlbinlog报Packet too large的问题
- JavaScript 基础技巧(1)
- 2009,你收获了什么?
- 触发器的使用!
- c#面试题目集锦
- input type="file" 样式的模仿
- [技巧靠点点滴滴的积累] Ubuntu 开发代号、命名方式及其他相关.
- 理解EnterCriticalSection 临界区