# Makefile for generating currytest tool

TOOL = $(BINDIR)/$(CURRYSYSTEM)-test

.PHONY: all compile install clean uninstall

all: install

compile: CurryTest

install: compile
	rm -f $(TOOL) $(BINDIR)/currytest
	cd $(BINDIR) && ln -s ../currytools/currytest/CurryTest $(notdir $(TOOL))

clean:
	$(CLEANCURRY)
	rm -f CurryTest

uninstall: clean
	rm -f $(TOOL)

CurryTest:  CurryTest.curry         $(LIBDIR)/FlatCurry/Files.curry   \
	  $(LIBDIR)/System.curry    $(LIBDIR)/Assertion.curry    \
	  $(LIBDIR)/Directory.curry $(LIBDIR)/Distribution.curry \
	  $(LIBDIR)/GUI.curry
	$(REPL) $(REPL_OPTS) :load CurryTest :save :quit


