summaryrefslogtreecommitdiff
path: root/doc/Makefile
blob: 56b50cc52c60d9205076c00ea4216cb137b2d057 (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
.PHONY: all images clean
all: images presentation.html documentation.html documentation.pdf

IMAGES_PGM=$(wildcard ../src/img/*.pgm)
IMAGES_PNG=$(IMAGES_PGM:.pgm=.png)

IMAGES_DIA=$(wildcard image/*.dia)
IMAGES_SVG=$(IMAGES_DIA:.dia=.svg)

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

.SUFFIXES: .pgm .png
.pgm.png:
	convert $< $@
#	inkscape --without-gui --export-png=$@.png -h 1024 $@

.SUFFIXES: .txt .html
presentation.html: presentation.txt hs-wismar.css
	asciidoc --backend slidy --attribute stylesheet=$(PWD)/hs-wismar.css $<

.txt.html:
	asciidoc --backend html $<

images: image/film.svg $(IMAGES_PNG) $(IMAGES_SVG)

clean:
	rm -f presentation.html documentation.html $(IMAGES_PNG) $(IMAGES_SVG)

include asciidoc-boilerplate/thesis.mk