TESTFILES=*.test
TFLAGS=-v

all: test

test:
	if ! [ -d work ];  then mkdir work; fi
	opp_test -g $(TFLAGS) $(TESTFILES)
	cd work; opp_makemake -f -u cmdenv; make
	opp_test -r $(TFLAGS) $(TESTFILES)

clean:
	rm -rf work

syntax highlighted by Code2HTML, v. 0.9.1