diff options
Diffstat (limited to 'web/Makefile')
-rw-r--r-- | web/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/web/Makefile b/web/Makefile new file mode 100644 index 0000000..c34d965 --- /dev/null +++ b/web/Makefile @@ -0,0 +1,11 @@ +SUBDIRS=$(shell find . -mindepth 2 -maxdepth 2 -type f ! -ipath '*deps*' -iname makefile | rev | cut -d/ -f2- | rev) +SUBDIRS_CLEAN=$(SUBDIRS:%=%_clean) +TARGETS=$(SUBDIRS) +.SILENT: all loop $(TARGETS) +.PHONY: all loop $(TARGETS) +all: $(SUBDIRS) +clean: $(SUBDIRS_CLEAN) +$(SUBDIRS): + $(MAKE) -C $@ +$(SUBDIRS_CLEAN): + make -C $(subst _clean,,$@) clean |