digest-keccak/Makefile
Hongli Lai (Phusion) e19966f329 Add tests
2012-10-05 20:40:31 +02:00

18 lines
443 B
Makefile

.phony: all clean test
all: ext/digest/Makefile
make -C ext/digest
ext/digest/Makefile: ext/digest/extconf.rb
cd ext/digest && ruby extconf.rb
clean:
if [[ -f ext/digest/Makefile ]]; then make -C ext/digest clean; fi
rm -f ext/digest/Makefile
rm -f test/test_vectors.rb
test: all test/test_vectors.rb
ruby test/test_all.rb
test/test_vectors.rb: test/generate_tests.rb test/data/*
ruby test/generate_tests.rb > test/test_vectors.rb