#
# CONGEN Support Makefile. To be used with make.
#
.SUFFIXES :			# Roll our own below.
.SUFFIXES : .out .inp .dif .Counts 

RINGS = trpring.out hisring.out hsdring.out tyrring.out phering.out \
        am_trpring.out am_hisring.out am_hsdring.out am_tyrring.out am_phering.out \
	am_met.out am_cys.out am_hipring.out \
	am94_hisring.out am94_hiering.out am94_hipring.out \
	am94_phering.out am94_tyrring.out am94_trpring.out

RINGSINPUTS = $(RINGS:.out=.inp)

SOURCES = makefile flclean.com ruc.com runcg.com runcg sccstorcs \
	  runcg2 ruc rc \
	  comparecg comparecmp $(RINGSINPUTS)

rings: $(RINGS)
	echo "Ring runs are done."

.inp.out:
	-runcg $* 

tovax: tovax.time

tovax.time: $(SOURCES)
	cp $? dino
	(cd dino/; chmod u+w $?)
	touch tovax.time

.DEFAULT:
	co $<
