summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 4a7e803..586bd2a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,9 @@
DEBUG:=yes
+DIAs=$(wildcard image/*.dia)
+SVGs=$(DIAs:.dia=.svg)
+EPSs=$(DIAs:.dia=.eps)
+
.PHONY: all clean
all: projekt_doku.pdf
@@ -16,7 +20,7 @@ all: projekt_doku.pdf
#.asciidoc.tex:
# asciidoc --backend=latex $<
-projekt_doku.pdf: projekt_doku.asciidoc thesis.xsl thesis.sty
+projekt_doku.pdf: projekt_doku.asciidoc thesis.xsl thesis.sty $(SVGs) $(EPSs)
a2x -f pdf $<
.PHONY: pluggit
@@ -25,9 +29,13 @@ pluggit:
touch pluggit/src/Scaler.cxx
$(MAKE) -C pluggit/ -f makefile.voodoo DIRECTFB_VOODOO=../directfb-voodoo/DirectFB_Voodoo all
-#.SUFFIXES: .dia .svg
-#.dia.svg:
-# @dia --export=$@ --filter=svg $<
+.SUFFIXES: .dia .svg
+.dia.svg:
+ @dia --export=$@ --filter=svg $<
+
+.SUFFIXES: .eps .svg
+.dia.eps:
+ @dia --export=$@ --filter=eps $<
clean:
rm -f document.html presentation.html document.pdf ${GenSVG}