简单!
全部博文(366)
分类: LINUX
2012-02-09 14:36:55
txgc_wm2013-01-12 20:19:49
遍历所有子目录的Makefile,并运行相应的make target.
#
# Reference http://www.gnu.org/software/make/manual/make.html
#
# 需要排除的目录
exclude_dirs := include bin
# 取得当前子目录深度为1的所有目录名称
dirs := $(shell find . -maxdepth 1 -type d)
dirs := $(basename $(patsubst ./%,%,$(dirs)))
dirs := $(filter-out $(exclude_di