SRC	= slides.mdwn extra.mdwn ipol_process.mdwn
S5	= $(SRC:.mdwn=.html)

IMG	= img/3parts.png img/3steps.png img/3parts_en.png img/3steps_en.png

default	: $(S5) $(IMG)

%.html	: %.mdwn
	pandoc --from markdown --to s5 \
		--custom-header s5/header.html --css style/local.css \
		--standalone $< -o $@

img/3parts.png	: img/3parts.dot
	circo -Tpng -Gmindist=.5 $< > $@
img/3parts_en.png	: img/3parts_en.dot
	circo -Tpng -Gmindist=.5 $< > $@
img/3steps.png	: img/3steps.dot
	dot -Tpng -Gmindist=.5 -Grankdir=LR $< > $@
img/3steps_en.png	: img/3steps_en.dot
	dot -Tpng -Gmindist=.5 -Grankdir=LR $< > $@

.PHONY	: show
show	: slides.html
	chromium-browser slides.html

#	chromium-browser --app=file:///$$PWD/slides.html &

.PHONY	: mirror
mirror	:
	$(MAKE) -C mirror

.PHONY	: distclean
distclean	:
	$(RM) $(S5) $(INDEX)
