NOTDIRS := CVS scripts logs
SUBDIRS := $(filter-out $(NOTDIRS),$(shell find * -type d -maxdepth 0))

all: logs $(SUBDIRS)

logs:
	mkdir logs;

.PHONY: all $(SUBDIRS) start run

start:
	$(SCT_DAQ_ROOT)/SystemTests/scripts/start.sh

$(SUBDIRS):
	$(MAKE) -C $@ $(TARGET)

run: TARGET := run
run: logs start $(SUBDIRS)

