update: makefile and vscode latex recipy
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
main = report
|
||||
latexmk = latexmk -pdflatex
|
||||
git_add_files = *.tex imgs/ ref.bib
|
||||
|
||||
.PHONY : main clean cleanall
|
||||
.PHONY : main clean cleanall autopush
|
||||
|
||||
main: $(main).tex
|
||||
$(latexmk) $<
|
||||
@@ -11,3 +12,7 @@ clean:
|
||||
|
||||
cleanall:
|
||||
$(latexmk) -C $(main).tex
|
||||
|
||||
autopush: main
|
||||
git add $(git_add_files)
|
||||
git diff --cached --quiet || (git commit -m "update: auto commit" && git push)
|
||||
Reference in New Issue
Block a user