# HG changeset patch # User Heiko Schlittermann (JUMPER) # Date 1420879969 -3600 # Node ID 45efb636d609c1038778bf580685beed16e07ded # Parent 961a1eabccf628b7ff05d0a44d53f66beeb1b568 makefile infrastructure diff -r 961a1eabccf6 -r 45efb636d609 .hgignore --- a/.hgignore Fri Jan 09 23:48:09 2015 +0100 +++ b/.hgignore Sat Jan 10 09:52:49 2015 +0100 @@ -1,1 +1,2 @@ -\bexim\.(html|pdf)$ +\bout/ +\ba2x/ diff -r 961a1eabccf6 -r 45efb636d609 Makefile --- a/Makefile Fri Jan 09 23:48:09 2015 +0100 +++ b/Makefile Sat Jan 10 09:52:49 2015 +0100 @@ -2,10 +2,19 @@ PDF = ${TXT:.txt=.pdf} HTML = ${TXT:.txt=.html} -html exim.html: ${TXT} - asciidoc $< +date = ${shell date -I} +revision = "${shell hg id -tibB}" + +html out/exim.html: ${TXT} + @mkdir -p out + asciidoc -a date=${date} -a revision=${revision} -a x=y -o out/exim.html $< -pdf exim.pdf: ${TXT} - a2x $< +#pdf a2x/exim.pdf: ${TXT} +# mkdir -p a2x +# a2x --format=pdf --destination-dir=a2x/ $< -clean: ; rm ${PDF} ${HTML} +#epub a2x/exim.epub: ${TXT} +# mkdir -p a2x +# a2x --format=epub --destination-dir=a2x/ $< + +clean: ; rm -f out/* diff -r 961a1eabccf6 -r 45efb636d609 exim.txt --- a/exim.txt Fri Jan 09 23:48:09 2015 +0100 +++ b/exim.txt Sat Jan 10 09:52:49 2015 +0100 @@ -1,10 +1,11 @@ = Exim - Konfiguration und Betrieb = :Author: Heiko Schlittermann :Email: hs@schlittermann.de -:Date: 2014-12-21 -:Revision: 0.1 -:doctype: book +//:Date: see Makefile +//:Revision: see Makefile +:doctype: book :toc: +:numbered: [[preface]] = Vorwort =