# $Id: Makefile,v 1.2 2004-03-10 02:03:16 rhl Exp $
SHELL = /bin/sh
DIRS = include

all: tags


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

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

