#DIRS=comlib commlib_stream pipeBroadcast
DIRS=section-multicast-test section-multicast-test-6 

.PHONY: test $(DIRS)

all:
	for d in $(DIRS); do \
                (cd $$d; $(MAKE) all OPTS='$(OPTS)' || exit 1) || exit 1; \
        done

test: $(DIRS)

comlib: 
	echo "skipping comlib test"
#	$(MAKE) -C $@ test OPTS='$(OPTS)'

commlib_stream:
	echo "skipping commlib_stream tests"
#	$(MAKE) -C $@ test OPTS='$(OPTS)'

pipeBroadcast: 
	echo "skipping comlib test"
#	$(MAKE) -C $@ test OPTS='$(OPTS)'

section-multicast-test:
	$(MAKE) -C $@ test OPTS='$(OPTS)'                                                                                                                               
section-multicast-test-6:
	$(MAKE) -C $@ test OPTS='$(OPTS)'    

eachtomany-test-2:
	$(MAKE) -C $@ test OPTS='$(OPTS)'   

bgtest: test
	echo "testing target test instead of bgtest""
#	for d in $(DIRS); do \
#		(cd $$d; $(MAKE) bgtest OPTS='$(OPTS)' || exit 1) || exit 1; \
#	done

clean:
	for d in $(DIRS); do (cd $$d; $(MAKE) clean OPTS='$(OPTS)'); done
	rm -f TAGS #*#
	rm -f core *~
