replace run script with Makefile