Replaced script with a makefile