Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1814677
  • 博文数量: 274
  • 博客积分: 2366
  • 博客等级: 大尉
  • 技术积分: 1880
  • 用 户 组: 普通用户
  • 注册时间: 2007-04-22 09:37
文章分类

全部博文(274)

文章存档

2022年(1)

2020年(10)

2019年(7)

2018年(18)

2017年(26)

2016年(32)

2015年(43)

2014年(30)

2013年(44)

2012年(36)

2011年(17)

2010年(10)

分类: LINUX

2011-12-08 15:31:19

递归编译子目录

SUBDIRS=`ls -d */ | grep -v 'bin' | grep -v 'lib' | grep -v 'include' | grep -v 'common'`

define make_subdir
 @for subdir in $(SUBDIRS) ; \
 do ( make -C $$subdir $1) \
 done;
endef

all:
$(call make_subdir , all)

clean:
$(call make_subdir , clean)


阅读(1141) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~