
# 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 common/logo-square.pdf pollfunc.pdf read_raw.pdf
	$(PDFLATEX_ENV) pdflatex -shell-escape iio-a-new-subsystem.tex

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

%.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)
