summaryrefslogtreecommitdiff
path: root/doc/Makefile
diff options
context:
space:
mode:
authorJan Klemkow <j.klemkow@wemelug.de>2012-04-10 22:56:00 +0200
committerJan Klemkow <j.klemkow@wemelug.de>2012-04-10 22:56:00 +0200
commitb6b0129790f65650432ada841d98fc59d367b25f (patch)
tree01263fce85fdc3d87e185ab3b7bcc87396f6c0f9 /doc/Makefile
parent266d15cbc2dcc897702e77a8f5d6cbc30c15fad7 (diff)
downloaddmc-b6b0129790f65650432ada841d98fc59d367b25f.tar.gz
dmc-b6b0129790f65650432ada841d98fc59d367b25f.tar.bz2
dmc-b6b0129790f65650432ada841d98fc59d367b25f.zip
Init DMC documentation with TeX.
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile54
1 files changed, 54 insertions, 0 deletions
diff --git a/doc/Makefile b/doc/Makefile
new file mode 100644
index 0000000..8fb882d
--- /dev/null
+++ b/doc/Makefile
@@ -0,0 +1,54 @@
+SRC_DIA=$(wildcard image/*.dia)
+SRC_SVG=$(SRC_DIA:.dia=.svg)
+SRC_PDF=$(SRC_SVG:.svg=.pdf)
+CD_DIR="cdrom"
+PIC_DIR="$(CD_DIR)/Bilder"
+SRC_DIR="$(CD_DIR)/Quelltext"
+DOC_DIR="$(CD_DIR)/Dokumentquellen"
+
+document.pdf: document.tex $(SRC_PDF)
+ @pdflatex document.tex
+ @makeindex document.nlo -s nomencl.ist -o document.nls
+ @bibtex document
+ @pdflatex document.tex
+ @pdflatex document.tex
+
+all: document.pdf presentation-genua.pdf presentation-hs.pdf cdrom
+
+cdrom: cdrom.img
+
+clean:
+ @rm -f $(SRC_SVG) $(SRC_PDF)
+ rm -f *.{aux,dvi,log,pdf,toc,nav,out,snm,lot,bbl,lof,blg,glo,ilg,ind,ist,lol,nlo,nls}
+ @rm -rf $(CD_DIR)
+ @rm -f cdrom.img
+
+presentation-genua.pdf: presentation-genua.tex $(SRC_PDF)
+ @pdflatex presentation-genua.tex
+
+presentation-hs.pdf: presentation-hs.tex $(SRC_PDF)
+ @pdflatex presentation-hs.tex
+
+presentation-nsmlab.pdf: presentation-nsmlab.tex $(SRC_PDF)
+ @pdflatex presentation-nsmlab.tex
+
+image/%.svg: image/%.dia
+ @dia --export=$@ -t svg $<
+
+image/%.pdf: image/%.svg
+ @inkscape -z -f $< \
+ --export-pdf=$@ \
+ --export-area-drawing
+
+cdrom.img: document.pdf presentation-genua.pdf presentation-hs.pdf \
+ $(SRC_PDF) $(SRC_SVG)
+ @mkdir -p $(CD_DIR)
+ @mkdir -p $(PIC_DIR) $(SRC_DIR) $(DOC_DIR)
+ @cp document.pdf $(CD_DIR)/Praxisarbeit.pdf
+ @cp $(SRC_DIA) $(SRC_PDF) $(SRC_SVG) $(PIC_DIR)
+ @cp code/* $(SRC_DIR)
+ @cp -R *.tex *.bib Makefile image $(DOC_DIR)
+ @make -C $(DOC_DIR) clean
+ @mkisofs -J -o cdrom.img $(CD_DIR)
+
+.PHONY: all clean cdrom