DOC = kocialkowski-supporting-hw-accelerated-video-encoding-with-mainline.tex

PICTURES = \
	common/logo-penguins.pdf \
	common/logo-square.pdf \
	common/bootlin-logo.pdf \
	images/video-file.pdf \
	images/ippb.pdf \
	images/yuv-sub-sampling.pdf \
	images/hantro-h1-block.pdf

all: $(PICTURES)
	$(PDFLATEX_ENV) xelatex -shell-escape $(DOC)

%.pdf: %.svg
	inkscape -C --export-filename=$@ $<

%.pdf: %.eps
	epstopdf --outfile=$@ $^

%.eps: %.dia
	dia -e $@ -t eps $^

clean:
	$(RM) -r common/*.pdf *.pdf *.pyg *.snm *.toc *.vrb *.aux *.nav *.out *.dia~ *.log _minted* $(PICTURES)
