PNGS = pngs/network-private.png pngs/network-public.png pngs/network-community.png
PNGS_BEAMER = pngs/confine,background.png

.PHONY:	clean

all:	slides,lightning.pdf

slides,lightning.pdf:	script,lightning.txt $(PNGS) slides-header.tex $(PNGS_BEAMER)
	pandoc -t beamer -H slides-header.tex slides,lightning.txt -o $@

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

pngs/confine,background.png:	logos/confine,logo.svg
	inkscape -z -D -e $@ -w 1024 $<

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

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

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

clean:
	rm -f $(PNGS) $(PNGS_BEAMER) slides,lightning.pdf slides,lightning.html
