summaryrefslogtreecommitdiff
path: root/doc/Makefile
blob: 9fcb39cc5ee5e55ec984ac3d64d94b0b77a98c76 (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
.PHONY: all images clean
all: images presentation.html document.html

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

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

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

.SUFFIXES: .asciidoc .html
presentation.html: presentation.asciidoc
	asciidoc --backend slidy presentation.asciidoc

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

images: image/film.svg $(IMAGES_PNG)

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