# ----------------------------------------------------------------------------
# - Makefile                                                                 -
# - acme configuration 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                                    -
# ----------------------------------------------------------------------------

BASEFILE	= mak/base.mak
-include	$(BASEFILE)

# rule: configure
# this rule configure the distribution tree by detecting the platform and
# generating the appropriate top level site and rule make file

configure:
	@./bin/aconf -d 
.PHONY: configure

# rules: mkcnf
# run the configure rule by default if not set

mkcnf:
	@test -f rule.mak && test -f site.mak \
	  || ${MAKE} --no-print-directory configure
.PHONY: mkcnf

# rule: clean
# this rule cleans the tree and the configurated make files

clean: mkcnf
	@$(RM) *~ bin/*~ mak/*~
	@$(RM) site.mak rule.mak
.PHONY: clean
