1*0b0cce93SfslongjinSUBDIRS = kernel 2f479f321Sfslongjin 3f479f321Sfslongjin.PHONY: all 4f479f321Sfslongjinall: 5*0b0cce93Sfslongjin mkdir -p bin/kernel/ 6f479f321Sfslongjin @list='$(SUBDIRS)'; for subdir in $$list; do \ 7f479f321Sfslongjin echo "make all in $$subdir";\ 8f479f321Sfslongjin cd $$subdir;\ 9f479f321Sfslongjin make all;\ 10f479f321Sfslongjin cd ..;\ 11f479f321Sfslongjin done 12f479f321Sfslongjin 13f479f321Sfslongjin.PHONY: clean 14f479f321Sfslongjinclean: 15f479f321Sfslongjin @list='$(SUBDIRS)'; for subdir in $$list; do \ 16f479f321Sfslongjin echo "Clean in dir: $$subdir";\ 17f479f321Sfslongjin cd $$subdir && make clean;\ 18f479f321Sfslongjin cd .. ;\ 19f479f321Sfslongjin done