23,118
社区成员
发帖
与我相关
我的任务
分享
RELEASE=0
test:
cd ./NetEngine_Core/NetEngine_Core && $(MAKE) -f Makefile $(RELEASE)
files := $(shell find . -name "makefile" -o -name "Makefile")
#dirs := $(dir $(files))
.PHONY: all
all:
for i in $(files); do make -C `dirname $$i`; done
貌似满足你的要求,你自己根据需要修改下..自己写Makefile机会真不多,test:
cd ./subdir1 && $(MAKE) -f submakefile1
cd ./subdir2 && $(MAKE) -f submakefile2
cd ./subdir3 && $(MAKE) -f submakefile3
...
主目录中直接make即可