COMMIT_MSG ?= "Auto-commit: $(shell date '+%Y-%m=%d %H:%M:%S')" #-------------------------------------------------------------- help: @echo "usage: " @echo "make git" @echo "make git msg='...'" @echo "make help " #------------------------------------------------------------- git: git status git add . git commit -m $(COMMIT_MSG) git push origin master .PHONY: git help