change Makefile to bash script