added wait for make process to finish