Makefile 324 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
NON_DIRS=experiments/ template/
DIRS=$(patsubst %/,%/,$(sort $(dir $(filter-out $(NON_DIRS),$(wildcard */)))))
MAKE=make

.PHONY: all clean $(DIRS) run

all: $(DIRS)

$(DIRS):
	@echo Entering $@
	$(MAKE) -C $@
	@echo Leaving $@

clean: $(CLEAN)
	@echo Cleaning up...
	@for i in $(DIRS); do ($(MAKE) -C $$i/ clean); done