Convert test script to `Makefile`