Replaced batch file by makefile