# ----------------------------------------------------------------------------
# - Makefile                                                                 -
# - acme tst 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)

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

all: test
.PHONY: all

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

include $(RULEFILE)

# rule: testers
# this rule build only the sub directories

testers:
	@${MAKE} -C system testers
	@${MAKE} -C stdobj testers
	@${MAKE} -C engine testers
.PHONY: testers

# rule: test
# this rule build and tests all sub projects

test:
	@${MAKE} --no-print-directory -C system test
	@${MAKE} --no-print-directory -C stdobj test
	@${MAKE} --no-print-directory -C engine test
	@${MAKE} --no-print-directory -C source test
.PHONY: test

# rule: clean
# this rule clean all test directories

clean::
	@${MAKE} -C system clean
	@${MAKE} -C stdobj clean
	@${MAKE} -C engine clean
	@${MAKE} -C source  clean
.PHONY: clean
