summaryrefslogtreecommitdiffstats
path: root/web/Makefile
blob: c34d9657e2b481030ff519f705642b1c084db5c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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