Files
progress-report/Makefile
T

18 lines
345 B
Makefile

main = report
latexmk = latexmk -pdflatex
git_add_files = *.tex imgs/ ref.bib
.PHONY : main clean cleanall autopush
main: $(main).tex
$(latexmk) $<
clean:
$(latexmk) -c $(main).tex
cleanall:
$(latexmk) -C $(main).tex
autopush: main
git add $(git_add_files)
git diff --cached --quiet || (git commit -m "update: auto commit" && git push)