summaryrefslogtreecommitdiff
path: root/Makefile
blob: 8c60a0fc2384432e6a5245c70fa6b3c4095239af (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
DEBUG:=yes

DIAs=$(wildcard image/*.dia)
SVGs=$(DIAs:.dia=.svg)
PNGs=$(SVGs:.svg=.png)
EPSs=$(DIAs:.dia=.eps)

.PHONY: all clean
all: projekt_doku.pdf presentation.html

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

presentation.html: presentation.txt $(SVGs) $(PNGs)

.SUFFIXES: .asciidoc .pdf
.asciidoc.pdf:
	a2x -f pdf $<

projekt_doku.pdf: projekt_doku.asciidoc thesis.xsl thesis.sty $(SVGs) $(EPSs)

.PHONY: pluggit
pluggit:
	rm -f pluggit/pluggit
	$(MAKE) -C directfb-voodoo/ -f makefile.voodoo DEBUG=$(DEBUG) package
	$(MAKE) -C pluggit/ -f makefile.voodoo DIRECTFB_VOODOO=../directfb-voodoo/DirectFB_Voodoo all

.SUFFIXES: .dia .svg
.dia.svg:
	@dia --export=$@ --filter=svg $<
	sed -i 's~xlink:href="[^"]*/\([^"/]*\)"~xlink:href="\1"~' $@

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

.SUFFIXES: .svg .png
.svg.png:
	rsvg-convert -f png $< > $@

clean:
	rm -f projekt_doku.pdf presentation.html document.pdf
	rm -f $(SVGs) $(PNGs) $(EPSs)
	$(MAKE) -C pluggit/ -f makefile.voodoo clean
	rm -f pluggit/src/classes.cpp
	$(MAKE) -C directfb-voodoo/ -f makefile.voodoo clean
	rm -rf directfb-voodoo/DirectFB_Voodoo*