############################ -*- Mode: Makefile -*- ###########################
##
## File             : Makefile
##
## Description      : frontend to cons to build SFgate
##
#
# Copyright (C) 1996 Ulrich Pfeifer, Norbert Goevert
#
# This file is part of SFgate.
#
# SFgate is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# SFgate 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.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with SFgate; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#
##
## Author           : Norbert Goevert
## Created On       : Thu Sep  5 09:57:39 1996
##
## Last Modified By : Norbert Goevert
## Last Modified On : Thu Dec 12 15:33:51 1996
##
## $State: Exp $
##
## $Id: Makefile,v 5.1.1.1 1996/12/23 12:44:47 goevert Exp goevert $
##
## $Log: Makefile,v $
## Revision 5.1.1.1  1996/12/23 12:44:47  goevert
## patch6: make realclean
##
## Revision 5.1  1996/11/05 16:52:39  goevert
## *** empty log message ***
##
## Revision 5.0.1.1  1996/11/04 13:05:18  goevert
## patch21: cons instead of MakeMaker
##
###############################################################################


 PERL = perl
 CONS = cons/cons

all : $(CONS) _build

$(CONS) : $(CONS).PL
	@cd cons; $(PERL) cons.PL

_build : $(CONS)
	@$(CONS) build
	@if test -d 'C'; then $(CONS) C; fi

test : $(CONS)
	@$(CONS) tests

check : $(CONS)
	@$(CONS) devel=check
	@$(CONS) tests

install : $(CONS)
	@$(CONS) /

uninstall : $(CONS)
	@$(CONS) -r /

clean : $(CONS)
	@$(CONS) -r .

realclean : $(CONS) clean
	rm -f cons/cons
	rm -f config.sh

configure : $(CONS)
	@$(CONS) configure=1

show : $(CONS)
	@$(CONS) show=1

dist : $(CONS)
	@$(CONS) devel=dist

distgold : $(CONS)
	@$(CONS) devel=distgold

ftp : $(CONS)
	@$(CONS) devel=ftp

tags : $(CONS)
	@$(CONS) devel=tags

docs : $(CONS)
	@$(CONS) devel=docs

checks : $(CONS)
	@$(CONS) devel=check
