diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 30 |
1 files changed, 21 insertions, 9 deletions
@@ -1,15 +1,27 @@ -.PHONY: clean +LATEXMK=latexmk +LATEXMKOPT=-pdf -xelatex +CONTINUOUS=-pvc -all: clean cv.pdf cv-web.pdf +MAIN=cv +RUBRICS=statement.tex experience.tex opensource.tex specialinterest.tex +SOURCES=Makefile $(RUBRICS) -cv-web.pdf : cv.pdf - qpdf --linearize $< $@ +all: $(MAIN).pdf -%.pdf : %.tex - latexmk -f -pdf -xelatex -quiet $< +.refresh: + touch .refresh +$(MAIN).pdf: $(MAIN).tex .refresh $(SOURCES) + $(LATEXMK) $(LATEXMKOPT) $(CONTINUOUS) $(MAIN) + +%.pdf : %.tex rubric.tex + latexmk -f -pdf -xelatex -use-make $< + +cleanall: + latexmk -C clean: - rm -f *.{aux,fdb_latexmk,fls,log,xdv,out} + latexmk -c +watch: + latexmk -pvc -f -pdf -xelatex $< -cleanall : clean - rm -f *.pdf +.PHONY: clean cleanall watch |