go: test_gdbm.uto # pypy-test.uto
	/bin/true

test_gdbm.uto: test_gdbm.py
	rm -f '@test'
	> test_gdbm.uto
	if ! /usr/local/cpython-2.5/bin/python         ./test_gdbm.py >> test_gdbm.uto 2>&1; then cat test_gdbm.uto; rm test_gdbm.uto; exit 1; fi
	if ! /usr/local/cpython-2.6/bin/python         ./test_gdbm.py >> test_gdbm.uto 2>&1; then cat test_gdbm.uto; rm test_gdbm.uto; exit 1; fi
	if ! /usr/local/cpython-2.7/bin/python         ./test_gdbm.py >> test_gdbm.uto 2>&1; then cat test_gdbm.uto; rm test_gdbm.uto; exit 1; fi
	if ! /usr/local/cpython-3.0/bin/python         ./test_gdbm.py >> test_gdbm.uto 2>&1; then cat test_gdbm.uto; rm test_gdbm.uto; exit 1; fi
	if ! /usr/local/cpython-3.1/bin/python         ./test_gdbm.py >> test_gdbm.uto 2>&1; then cat test_gdbm.uto; rm test_gdbm.uto; exit 1; fi
	if ! /usr/local/cpython-3.2/bin/python         ./test_gdbm.py >> test_gdbm.uto 2>&1; then cat test_gdbm.uto; rm test_gdbm.uto; exit 1; fi
	if ! /usr/local/pypy-1.4.1/bin/pypy            ./test_gdbm.py >> test_gdbm.uto 2>&1; then cat test_gdbm.uto; rm test_gdbm.uto; exit 1; fi
	if ! /usr/local/pypy-trunk-2011-04-10/bin/pypy ./test_gdbm.py >> test_gdbm.uto 2>&1; then cat test_gdbm.uto; rm test_gdbm.uto; exit 1; fi
	if ! /usr/local/jython-2.7a2/bin/jython        ./test_gdbm.py >> test_gdbm.uto 2>&1; then cat test_gdbm.uto; rm test_gdbm.uto; exit 1; fi

pypy-test.uto: pypy-test.ut
	./pypy-test.ut

clean:
	rm -f core @test *.pyc *.class *.uto table
	rm -rf __pycache__