# Filename of main TeX file (without extension) MAIN:=Manuscript_PRL .PHONY: build clean update up pull commit co push all: $(MAKE) build || $(MAKE) build-classic build: latexmk -synctex=1 -interaction=nonstopmode -file-line-error -pdf ${MAIN} build-classic: pdflatex ${MAIN} bibtex ${MAIN} pdflatex ${MAIN} pdflatex ${MAIN} # For git-svn update up pull: @git stash @git svn rebase @-git stash pop @git status commit co push: git svn dcommit --rmdir clean: git clean -Xdf git svn mkdirs clean-all: clean rm -f ${MAIN}.pdf