
# Environment for pdflatex, which allows it to find the stylesheet in the
# common/ directory.
PDFLATEX_ENV = TEXINPUTS=.:$(PWD)/../../../../training/materials-ng/common:

all: common/logo-penguins.pdf common/bootlin-logo.pdf qt-logo.pdf qt-serial-port.pdf
	$(PDFLATEX_ENV) pdflatex -shell-escape qt-for-non-graphical-apps.tex

%.pdf: %.svg
	inkscape -D -A $@ $<

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

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

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

