summaryrefslogtreecommitdiff
path: root/Makefile
blob: 64c659f3ef5cd3f6325ca7ea0ba231268940dff2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
SOURCE=debian-kopano.mdwn
PDF=$(SOURCE:mdwn=pdf)
REVEALJS=$(SOURCE:mdwn=html)
REVEALJS_VER=3.3.0

IMAGES=$(wildcard *.png)

all: ${REVEALJS} ${PDF}

${REVEALJS}: ${SOURCE} ${IMAGES} Makefile reveal.js
	#pandoc -V transition=fade -V theme=godiug -t revealjs -s ${SOURCE} -o ${REVEALJS}
	pandoc -V transition=fade -t revealjs -s ${SOURCE} -o ${REVEALJS}
	#sed -i -e 's,<body>,<body><div id="watermark"><img src="logo.png"></div>,' ${REVEALJS}

${PDF}: ${SOURCE} Makefile
	pandoc -t beamer -s ${SOURCE} -o ${PDF}

dgm.png: dgm.csv dgm.plot
	gnuplot dgm.plot

reveal.js:
	git clone https://github.com/hakimel/reveal.js.git
	cd reveal.js
	git checkout $(REVEALJS_VER)

clean:
	rm -f dgm.png