digest-keccak/Makefile
2013-05-21 23:26:43 +09:00

18 lines
441 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