IMGS = imgs/network-private.png imgs/network-public.png imgs/network-community.png \
	imgs/confine-partners.png imgs/extend-network.png
IMGS_BEAMER = imgs/confine,background.pdf


.PHONY:	clean

all:	slides,lightning.pdf


slides,lightning.pdf:	slides,lightning.txt $(IMGS) slides-header.tex $(IMGS_BEAMER)
	pandoc -t beamer -H slides-header.tex slides,lightning.txt -o $@

slides,lightning.html:	slides,lightning.txt $(IMGS)
	pandoc -t dzslides --self-contained slides,lightning.txt -o $@


imgs/confine,background.pdf:	logos/confine,logo.svg
	inkscape -z -D -A $@ $<

imgs/network-private.png:	diagrams/network-private.dia
	dia -e $@ -s 1024x $<

imgs/network-public.png:	diagrams/network-public.dia
	dia -e $@ -s 1024x $<

imgs/network-community.png:	diagrams/network-community.dia
	dia -e $@ -s 1024x $<

imgs/confine-partners.png:	logos/confine-partners.svg
	inkscape -z -C -e $@ -w 1024 $<

imgs/extend-network.png:	diagrams/extend-network.svg
	inkscape -z -C -e $@ -w 1024 $<


clean:
	rm -f $(IMGS) $(IMGS_BEAMER) slides,lightning.pdf slides,lightning.html
