replace java .sh scripts with makefil