# PWD=__HYBRIDSAL_ABS__/dp

test : unit-test.fasl
	echo "(load \"unit-test\")" > /tmp/3
	echo "(test-all)" >> /tmp/3
	echo "(exit)" >> /tmp/3
	mlisp < /tmp/3
	rm -Rf /tmp/3 unit-test.fasl unit-test.lisp
	
unit-test.fasl : unit-test.lisp
	echo "(compile-file \""${PWD}"/unit-test.lisp\")" > /tmp/2
	echo "(exit)" >> /tmp/2
	mlisp < /tmp/2
	rm -Rf /tmp/2

unit-test.lisp : decide-test2_0.lisp ../polyrep/polyrep.lisp decide2_0.lisp feas.lisp
	\rm -f unit-test.lisp
	cat ../polyrep/polyrep.lisp > unit-test.lisp
	cat decide2_0.lisp >> unit-test.lisp
	cat feas.lisp >> unit-test.lisp
	cat decide-test2_0.lisp >> unit-test.lisp
clean:
	\rm -f unit-test.lisp unit-test.fasl /tmp/2 /tmp/3

