summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 21 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 5db767f..9b7acf3 100644
--- a/Makefile
+++ b/Makefile
@@ -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