moved makefile to shell script so that bash functions would be available without logout