########################################################################
#
# The TasteCurry System:
# ======================
#
# A prototype implementation of the functional logic language Curry
# developed by
# Michael Hanus, Alexander Pretschner, Ramin Sadre, and Frank Steiner
# (contact: mh@informatik.uni-kiel.de)
#
########################################################################

#
# Install the TasteCurry system:
#

# The SICStus Prolog interpreter:
SICSTUS=`pwd`/../bin/sicstus

# define environment variable PAKCSHOME:
PAKCSHOME=`pwd`/..

#
# Install the TasteCurry system, i.e., generate a saved state:
#
.PHONY: install
install: tastecurry.state
	cd ../bin ; rm -f tastecurry ; ln -s .pakcs_wrapper tastecurry

tastecurry.state: curry.pl operators.pl \
	  currytools.pl maketree.pl \
	  typecheck.pl external.pl ms3.pl ownlists.pl io.pl \
	  filesystem.pl reservedNames.pl local.pl search.pl
	echo "use_module(library(lists)),compile('../curry2prolog/sicstusbasics'),compile(curry),saveprog_entry('tastecurry.state',cs('${PAKCSHOME}/lib/prelude'))." | ${SICSTUS}
	@echo "***** New TasteCurry system installed"

clean:
	rm -f tastecurry.state ../bin/tastecurry
