auto-commit by Makefile: added auto commit function to Makefile