use Makefile instead of shell script files