include ../makefile.include
# due to "| tee testsuite.log" in test and test_all,
# this makefile requires bash to exit with proper errorcode 
SHELL=bash -o pipefail

numbertable:
	if [ -f tools/compare_numbertable_new ] ; then \
           rm tools/compare_numbertable_new ; fi 
	if [ -f tools/m_strings.mod  ] ; then \
           rm tools/m_strings.mod ; fi 
	cd tools ;  $(FC) -o compare_numbertable_new compare_numbertable_new.f90

cleantest:
	cd tests ; ./cleanall
	if [ -f tools/compare_numbertable_new ] ; then \
           rm tools/compare_numbertable_new ; fi 
	if [ -f tools/m_strings.mod  ] ; then \
           rm tools/m_strings.mod ; fi 

test:	numbertable
	./runtest --fast 2>&1 | tee testsuite.log 

test_all: numbertable
	./runtest --all  2>&1 | tee testsuite.log
