Advertisement
aldikhan13

SIMPLE GITHUB AUTOMATION MAKEFILE

Jan 1st, 2021 (edited)
1,794
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.29 KB | None | 0 0
  1. ################################
  2. #### SIMPLE GIT AUTOMATION
  3. ################################
  4.  
  5. #execute command -> make gh msg="UpdateFiles"
  6.  
  7. GIT := git
  8. ACTION = add.o commit.o push.o
  9.  
  10. gh: ${ACTION}
  11.  
  12. %.o:
  13.     ${GIT} add .
  14. ifdef msg
  15.     ${GIT} commit -m ${msg}
  16. endif
  17.     ${GIT} push origin master
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement