summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorOlivia Mackintosh <livvy@base.nu>2022-07-26 20:24:57 +0200
committerOlivia Mackintosh <livvy@base.nu>2022-07-26 20:24:57 +0200
commitb853325d373bd0e074ef96a97d19e60748122d63 (patch)
treedbb194c92c96eefa9fa1dcaecc38fb574b895270 /Makefile
parent65f41390fba26cc321220496a16d97f36aa15fd6 (diff)
downloadcv-b853325d373bd0e074ef96a97d19e60748122d63.tar.gz
Overhaul using CurVe library
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