递归编译子目录
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)
阅读(1171) | 评论(0) | 转发(0) |