replaces do.sh with Makefile