all: cv.html cv.pdf

cv.html: cv.markdown
	pandoc --from markdown --to html --standalone --css cv.css $< -o $@

# cv.pdf: cv.markdown
# 	pandoc --from markdown --pdf-engine weasyprint --standalone $< -o $@

upload:
	scp cv.* auto:/var/www/vhosts/automatist.org/httpdocs/cv/
	scp cv.html auto:/var/www/vhosts/automatist.org/httpdocs/cv/index.html

xpub_application_murtaugh.pdf: xpub_application/headers.pdf cv.pdf xpub_application/motivation.pdf portfolio/portfolio.printer.pdf xpub_application/diversions-eventual-consistency.pdf
	pdftk H=xpub_application/headers.pdf \
		CV=cv.pdf \
		M=xpub_application/motivation.pdf \
		P=portfolio/portfolio.printer.pdf \
		E=xpub_application/diversions-eventual-consistency.pdf \
		cat H1-2 CV H3 M H4 P H5 E output xpub_application_murtaugh.pdf
