# DOCK Makefile for source directories.
# This is for building executables from source files.
# It merely invokes make with the appropriate target, for example install
# or clean, in all the specified source subdirectories.

include ../install/rules.h

all: install

install: dock6 utils

dock6:
	cd dock && make install

utils:
	cd accessories && make install
	cd gbsa_grids && make install
	cd grid && make install
	cd tleap && make install
	cd antechamber && make install
	cd mopac6/src && make install
	cd resp && make install
	cd docktools && make install

clean:
	cd dock && make clean
	cd accessories && make clean
	cd gbsa_grids && make clean
	cd grid && make clean
	cd tleap && make clean
	cd antechamber && make clean
	cd mopac6/src && make clean
	cd resp && make clean
	cd docktools && make clean

realclean: 
	cd dock && make realclean
	cd accessories && make realclean
	cd gbsa_grids && make realclean
	cd grid && make realclean
	cd tleap && make clean
	cd antechamber && make realclean
	cd mopac6/src && make realclean
	cd resp && make realclean
	cd docktools && make realclean

uninstall:
	cd dock && make uninstall
	cd accessories && make uninstall
	cd gbsa_grids && make uninstall
	cd grid && make uninstall
	cd tleap && make uninstall
	cd antechamber && make uninstall
	cd mopac6/src && make uninstall
	cd resp && make uninstall
	cd docktools && make uninstall

