# ----------------------------------------------------------------------------
# - Makefile                                                                 -
# - aleph interpreter tester makefile                                        -
# ----------------------------------------------------------------------------
# - This program is  free software;  you can  redistribute it and/or  modify -
# - it provided that this copyright notice is kept intact.                   -
# -                                                                          -
# - This  program  is  distributed in the hope  that it  will be useful, but -
# - without  any   warranty;  without  even   the   implied    warranty   of -
# - merchantability  or fitness for a particular purpose. In not event shall -
# - the copyright holder be  liable for  any direct, indirect, incidental or -
# - special damages arising in any way out of the use of this software.      -
# ----------------------------------------------------------------------------
# - copyright (c) 1999-2000 amaury darsch                                    -
# ----------------------------------------------------------------------------

TOPDIR		= ../..
CNFDIR		= $(TOPDIR)/cnf
SITEFILE	= $(CNFDIR)/site.mak
RULEFILE	= $(CNFDIR)/rule.mak
include		  $(SITEFILE)

TSTFILE	       := $(wildcard *.als)

# ----------------------------------------------------------------------------
# - project rules                                                            -
# ----------------------------------------------------------------------------

# rule: all
# this rule is the default rule which call the test rule

all: test

# include: rule.mak
# this rule includes the platform dependant rules

include $(RULEFILE)

test:
	@(for f in $(TSTFILE); do $(ATEST) $(TOPDIR) $(DIRREL) $$f; done)

# rule: tlist
# generate a test list summary

tlist:
	@$(GREP) '@info' $(TESTERS) *.als > tlist.txt

# rule: clean
# clean only the test file and depends file

clean::
	@$(RM) *~ tlist.txt
