IMG_WIDTH = 1024
IMGS = imgs/network-public.png imgs/network-private.png imgs/network-community.png \
imgs/confine-partners.png imgs/extend-network.png \
imgs/testbed.png imgs/testbed-slice.png imgs/testbed-cd-rd.png \
imgs/testbed-logos-node.png imgs/testbed-logos-mgmt.png imgs/testbed-logos-devel.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-public.png: diagrams/network-public.dia
dia -e $@ -s $(IMG_WIDTH)x $<
imgs/network-private.png: diagrams/network-private.dia
dia -e $@ -s $(IMG_WIDTH)x $<
imgs/network-community.png: diagrams/network-community.dia
dia -e $@ -s $(IMG_WIDTH)x $<
imgs/confine-partners.png: logos/confine-partners.svg
inkscape -z -C -e $@ -w $(IMG_WIDTH) $<
imgs/extend-network.png: diagrams/extend-network.svg
inkscape -z -C -e $@ -w $(IMG_WIDTH) $<
imgs/testbed.png: diagrams/testbed-logos.dia
dia -e $@ -L testbed -s $(IMG_WIDTH)x $<
imgs/testbed-slice.png: diagrams/testbed-logos.dia
dia -e $@ -L testbed,slice -s $(IMG_WIDTH)x $<
imgs/testbed-cd-rd.png: diagrams/testbed-logos.dia
dia -e $@ -L testbed,slice,cd-rd -s $(IMG_WIDTH)x $<
imgs/testbed-logos-node.png: diagrams/testbed-logos.dia
dia -e $@ -L testbed,slice,cd-rd,logos-node -s $(IMG_WIDTH)x $<
imgs/testbed-logos-mgmt.png: diagrams/testbed-logos.dia
dia -e $@ -L testbed,slice,cd-rd,logos-node,logos-mgmt -s $(IMG_WIDTH)x $<
imgs/testbed-logos-devel.png: diagrams/testbed-logos.dia
dia -e $@ -L testbed,slice,cd-rd,logos-node,logos-mgmt,logos-devel -s $(IMG_WIDTH)x $<
clean:
rm -f $(IMGS) $(IMGS_BEAMER) slides,lightning.pdf slides,lightning.html