summaryrefslogtreecommitdiff
path: root/Makefile
blob: 551c9bfd42780928dec5d030f8fe73c2cd42a0b5 (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
28
29
30
31
32
DBLATEX_OPTS="-P latex.encoding=utf8 -P latex.output.revhistory=0 -P doc.publisher.show=0 -P latex.class.options=a4paper,12pt,abstraction,titlepage -s sksys.sty -b xetex"
IMAGES!=ls image/*.dia
GenSVG=${IMAGES:S/.dia$/.svg/}

.PHONY: all clean up
all: ${GenSVG} document.html presentation.html

.SUFFIXES: .asciidoc .html
presentation.html: presentation.asciidoc
	asciidoc --out-file=$@ --backend=slidy $<
	sed -i -f fix-css.sed $@

.asciidoc.html:
	asciidoc --out-file=$@ --backend=html $<

.SUFFIXES: .asciidoc .tex
.asciidoc.tex:
	asciidoc --backend=latex $<

.SUFFIXES: .asciidoc .pdf
document.pdf: document.asciidoc sksys.sty
	a2x -f pdf --dblatex-opts=$(DBLATEX_OPTS) $<

.SUFFIXES: .dia .svg
.dia.svg:
	@dia --export=$@ --filter=svg $<

up: document.html
	scp document.html presentation.html klemkow.net:www

clean:
	rm -f document.html presentation.html ${GenSVG}