summaryrefslogtreecommitdiff
path: root/Makefile.include
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-09 09:37:25 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-09 09:37:25 +0100
commit0f663435017223a1b8292206f8ff91c0916113e3 (patch)
tree0523482e03fd682d7f35ea76f88865683c7be3fe /Makefile.include
parentcfe71c98c706370dc32690dc015e79adbc5a65e2 (diff)
downloadsksys-0f663435017223a1b8292206f8ff91c0916113e3.tar.gz
sksys-0f663435017223a1b8292206f8ff91c0916113e3.tar.bz2
sksys-0f663435017223a1b8292206f8ff91c0916113e3.zip
Add GNU and BSD makefile
Rules are in Makefile.include.
Diffstat (limited to 'Makefile.include')
-rw-r--r--Makefile.include34
1 files changed, 34 insertions, 0 deletions
diff --git a/Makefile.include b/Makefile.include
new file mode 100644
index 0000000..4c50105
--- /dev/null
+++ b/Makefile.include
@@ -0,0 +1,34 @@
+DBLATEX_OPTS="-P latex.encoding=utf8 -P latex.output.revhistory=0 -P doc.publisher.show=0 -P latex.class.options=a4paper,12pt,abstraction,titlepage -b xetex"
+
+.PHONY: all clean up
+all: ${GenSVG} document.html document.pdf presentation.html
+
+.SUFFIXES: .asciidoc .html
+presentation.html: presentation.asciidoc
+ asciidoc --out-file=$@.tmp --backend=slidy $<
+ sed -f fix-css.sed $@.tmp > $@
+ rm $@.tmp
+
+.asciidoc.html:
+ asciidoc --out-file=$@ --backend=html $<
+
+.SUFFIXES: .asciidoc .tex
+.asciidoc.tex:
+ asciidoc --backend=latex $<
+
+.SUFFIXES: .asciidoc .pdf
+document.pdf: document.asciidoc sksys.sty
+ a2x.py -f pdf --dblatex-opts=$(DBLATEX_OPTS) --dblatex-opts="-s sksys.sty" $<
+
+.asciidoc.pdf:
+ a2x.py -f pdf --dblatex-opts=$(DBLATEX_OPTS) $<
+
+.SUFFIXES: .dia .svg
+.dia.svg:
+ @dia --export=$@ --filter=svg $<
+
+up: document.html presentation.html
+ scp -r document.html presentation.html image klemkow.net:www
+
+clean:
+ rm -f document.html presentation.html document.pdf ${GenSVG}