#
# Makefile to control testing of reldb programs.
#
# Change the BINDIR to reflect where the binaries are.
#
BINDIR=../bin
SUFFIXES=.diff .tmp .data .res
.SUFFIXES: $(SUFFIXES)
DIFFFILES=subtotal.diff addcol.diff compute.diff \
	jointable.diff  math.diff \
	project.diff select.diff union.diff recode.diff
.data.diff:
	$*.prog $(BINDIR) $*.data > $*.tmp
	-diff $*.tmp $*.res > $*.diff
all: $(DIFFFILES)
	@echo Done - check if any .diff-files are nonempty
	@ls -l $(DIFFFILES)
clean: 
	rm -f *.diff *.tmp tmp*
