Makefile 257 B

12345678910111213
  1. sub_dirs = $(wildcard */)
  2. .PHONY: clean
  3. clean:
  4. @list='$(sub_dirs)'; for subdir in $$list; do \
  5. $(MAKE) -C $$subdir clean;\
  6. done
  7. .PHONY: fmt
  8. fmt:
  9. @list='$(sub_dirs)'; for subdir in $$list; do \
  10. FMT_CHECK=$(FMT_CHECK) $(MAKE) -C $$subdir fmt;\
  11. done