include ../default_targets.h

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

grid_generation:
	cd ../grid_generation && make test

clean: clean_dock
	/bin/rm -f pbsa1*mol2 pbsa2*mol2
	/bin/rm -f pbsa1.dockpbsaout pbsa2.dockpbsaout

