update test: rewrite Makefile