#編譯所有子目錄
#SUBDIRS=`ls -d */ | grep -v 'bin' | grep -v 'lib' | grep -v 'include'`
#編譯指定目錄
SUBDIRS=dir1 dir2 dir3
define make_subdir
@for subdir in $(SUBDIRS) ; do /
( cd $$subdir && make $1) /
done;
endef
all:
$(call make_subdir , all)
install:
$(call make_subdir , install)
debug:
$(call make_subdir , debug)
clean:
$(call make_subdir , clean)
沒有留言:
張貼留言