# -*- Mode: Makefile -*-
# $Id: Makefile,v 1.6 2002/11/27 16:29:54 adam Exp $

# Makefile for ODCL

SUBDIRS		:= tests
DOCSUBDIRS	:= 

LISP		:= lisp

.PHONY: all
all:
	@echo "nothing to be done by default"

.PHONY: dist
dist:
	./make-dist.sh

.PHONY: wwwdist
wwwdist:
	@# subdirs not working
	@# set -e; for i in $(DOCSUBDIRS); do $(MAKE) -C $$i $@; done

tags:	TAGS
TAGS:	*.lisp
	etags *.lisp

.PHONY: alltags
alltags:	TAGS
	@set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i TAGS; done

.PHONY: freeze
freeze:
	@echo tagging with frozen tag
	cvs -q rtag -d frozen odcl
	cvs -q tag -F frozen .

.PHONY: clean
clean:
	rm -f *.ufsl *.x86f *.sparcf *.fasl *.err
	find . -name "*.x86f" -o -name "*.ufsl" -o -name "*.sparcf" \
             -o -name "*.fasl" -o -name "*.err" | xargs rm -f
	rm -f *~ *.bak
	@set -e; for i in $(SUBDIRS) $(DOCSUBDIRS); do $(MAKE) -C $$i $@; done

.PHONY: distclean
distclean: clean
	rm -f TAGS
	rm -f ChangeLog*
	./debian/rules clean
	@set -e; for i in $(SUBDIRS) $(DOCSUBDIRS); do $(MAKE) -C $$i $@; done

