all = \ fripost-organisations-leaflet.pdf \ organisations.tex \ organisations.mdwn pandoc-opts = \ --template=template.tex \ -V documentclass=leaflet \ -V classoption=tumble \ -V papersize=a4paper all: $(all) fripost-organisations-leaflet.pdf: organisations.mdwn pandoc -s -f markdown -t latex $(pandoc-opts) -o $@ $< organisations.tex: organisations.mdwn template.tex pandoc -s -f markdown -t latex $(pandoc-opts) < $< > $@ organisations.mdwn: git archive --remote=gitolite@git.fripost.org:fripost-wiki.git --format=tar HEAD organisations.mdwn | tar --extract > $@ send: rsync -ruvp --chmod=Dugo+rx,Fugo+r *.pdf www.fripost.org:/var/www/fripost.org/material/ clean: rm -f $(all) SHELL = /bin/bash