# Filename of main TeX file (without extension) MAIN:=Manuscript_PRL SUPP:=SupplementaryMaterial .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} latexmk -synctex=1 -interaction=nonstopmode -file-line-error -pdf ${SUPP} build-classic: pdflatex ${MAIN} bibtex ${MAIN} pdflatex ${MAIN} pdflatex ${MAIN} pdflatex ${SUPP} bibtex ${SUPP} pdflatex ${SUPP} pdflatex ${SUPP} # 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