# $Id: Makefile,v 1.7 2004-04-19 19:38:18 rhl Exp $
SHELL = /bin/sh
DIRS = src include

.PHONY : all
all :
	@for f in $(DIRS); do \
		if [ ! -d $$f ]; then \
			echo No such directory: $$f >&2; \
		else \
			(cd $$f; $(MAKE)); \
		fi \
	done

.PHONY : tags
tags:
	etags `find . ! -name \*#\* \( -name \*.[ch] -o -name \*.cpp \) -print`
#
# Assumes that Utilities is checked out one level up
#
check :
	../Utilities/bin/check-namespace -d `find . ! -name \*#\* -name \*.[ha] -print`

doxygen:
	(cd include; doxygen)

publish:
	rsync -e ssh -auv ./ poiserver0:PSLib/

clean:
	$(RM) *~ core* TAGS
	@for f in $(DIRS); do \
		if [ ! -d $$f ]; then \
			echo No such directory: $$f >&2; \
		else \
			(cd $$f; $(MAKE) clean); \
		fi \
	done

