Import old talks from 2010 and 2011 (Boston).
[libguestfs-talks.git] / 2010 / Makefile
1 # This is in dots per inch.
2 SCREEN_RESOLUTION = 72
3
4 # Minimum version that will work is 2.00.  The version in Fedora 13
5 # is ancient, so we have to download it.
6 PGF_VERSION = 2.00
7
8 # Note this must be EXACTLY as written below:
9 export TEXINPUTS := .:$(shell pwd)/pgf-$(PGF_VERSION)//:
10
11 FIGURES = \
12         diskimg.png \
13         example.png \
14         vm.png
15
16 all: $(FIGURES)
17
18 # Generate PNG file from source TikZ/LaTeX file:
19 %.png: %.pdf
20         gs -dNOPAUSE -dBATCH \
21           -sDEVICE=png16m -r$(SCREEN_RESOLUTION) \
22           -dGraphicsAlphaBits=4 -dTextAlphaBits=4 \
23           -sOutputFile=$@ $<
24 %.pdf: %.tex pgf-$(PGF_VERSION)/ls-R
25         pdflatex $<
26
27 # Download pgf/tikz from upstream.
28 PGF_SOURCE_URL = http://downloads.sourceforge.net/project/pgf/pgf/version%20$(PGF_VERSION)/pgf-$(PGF_VERSION).tar.gz
29
30 pgf-$(PGF_VERSION)/ls-R: pgf-$(PGF_VERSION)
31         texhash pgf-$(PGF_VERSION)
32
33 pgf-$(PGF_VERSION): pgf-$(PGF_VERSION).tar.gz
34         zcat $< | tar xf -
35
36 pgf-$(PGF_VERSION).tar.gz:
37         wget -O "$@" "$(PGF_SOURCE_URL)"