########################################################################################
#
#  KPP - The Kinetic PreProcessor
#        Builds simulation code for chemical kinetic systems
#
#  Copyright (C) 1995-1996 Valeriu Damian and Adrian Sandu
#  Copyright (C) 1997-2004 Adrian Sandu
#
#  KPP 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 (http://www.gnu.org/copyleft/gpl.html); either version 2 of the
#  License, or (at your option) any later version.
#
#  KPP 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 this program; if not, consult http://www.gnu.org/copyleft/gpl.html or
#  write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
#  Boston, MA  02111-1307,  USA.
#
#  Adrian Sandu
#  Computer Science Department
#  Virginia Polytechnic Institute and State University
#  Blacksburg, VA 24060
#  E-mail: sandu@cs.vt.edu
#
#######################################################################################
include Makefile.defs

.PHONY: boxmox

all: kpp boxmox

kpp:
	@echo "Compiling KPP"
	@cd src;make;cd ..

boxmox_clean:
	@rm -f boxmox/README.pdf boxmox/README.aux boxmox/README.log boxmox/README.toc

boxmox_doc:
	@echo "Tex'ing BOXMOX readme (boxmox/README.pdf, if pdflatex is available)"
	-cd boxmox; pdflatex README.tex
	-cd boxmox; pdflatex README.tex
	
boxmox: boxmox_doc
	@echo "Setting the execute bit for user commands"
	@chmod +x boxmox/bin/*

clean: boxmox_clean
	@cd src;make clean;cd ..
	@rm -f *~ */*~

distclean: clean
	@cd src;make maintainer-clean;cd ..
	@rm -f bin/kpp
