ticket 9: added script to Makefile and corrected it