include ../default_targets.h

test: 
	@# run this test only if the parallel dock executable exists
	@(if [ -x "$(DOCK_BIN)/$(DOCK).mpi" ] ; then \
	    make grid_generation ;\
	    make mpi.dockmpiout ;\
	else \
	    echo "" ;\
	    echo "The parallel dock executable does not exist." ;\
	    echo "    Skipping this test." ;\
	    echo "" ;\
	fi ;\
	)

grid_generation:
	cd ../grid_generation && make test

clean: clean_dock
	/bin/rm -f mpi_ranked.mol2
	/bin/rm -f mpi_scored.mol2
	/bin/rm -f mpi.dockmpiout mpi.dockmpiout.?

