# Copyright (C) Martin Buchholz 2003

SUBDIRS = joshua visitor singleton derived-singleton derived-template-singleton
SILENT_MAKE = $(MAKE) --no-print-directory

.PHONY: compile-errors tests

RECURSIVE_MAKE = for d in $(SUBDIRS) ; do cd $$d && $(SILENT_MAKE) $@; done

.PHONY: tests compile-errors clean dist
tests:
	$(RECURSIVE_MAKE)

compile-errors:
	$(RECURSIVE_MAKE)

clean:
	$(RECURSIVE_MAKE)

dist: clean
	@DIRNAME=`pwd | sed 's:.*/::'`; \
	cd ..; \
	echo tar czf $$DIRNAME.tar.gz $$DIRNAME; \
	tar czf $$DIRNAME.tar.gz $$DIRNAME
