summaryrefslogtreecommitdiff
path: root/Makefile
blob: c6b6b7dc00f95c212f4c3ae0068a32d12c57bd5a (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
version = $(shell git describe --dirty --tags)

.SUFFIXES: .html .mdwn .pdf .dot .svg

all: ci-arch.html ci-arch.pdf

ci-arch.pdf ci-arch.html: ci-arch.mdwn ecosystem.svg pipeline.svg

.dot.svg:
	dot -Tsvg -o$@ $<

.mdwn.html:
	pandoc --standalone --toc -o $@ $< 

.mdwn.pdf:
	pandoc --toc -f markdown+implicit_figures -Vdocumentclass:report \
		"-Vdate:$(version)" \
		-Vfontsize:12pt \
		-Vmainfont:FreeSerif \
		-Vsansfont:FreeSans \
		-Vmonofont:FreeMonoBold \
		-Vgeometry:top=2cm,bottom=2.5cm,left=5cm,right=2cm \
		-o $@ $<