all: jasmina.html jasmina.epub
+fb2: jasmina.fb2.zip
+pdf: jasmina.pdf
+
all.mdwn: order.lst $(wildcard *.txt)
for i in `cat order.lst`; do sed 's/<TBD>/*(Фрагмент недописан)*/' "$$i"; echo ""; done > $@
jasmina.html: all.mdwn
pandoc -t html --toc -s all.mdwn -o jasmina.html
jasmina.epub: all.mdwn
pandoc -t epub all.mdwn -o jasmina.epub
+jasmina.fb2.zip: jasmina.fb2
+ zip $@ $+
+jasmina.fb2: all.mdwn
+ pandoc -t fb2 all.mdwn -o jasmina.fb2
+jasmina.pdf: preamble.tex all.tex
+ pdflatex preamble.tex
+ pdflatex preamble.tex
+all.tex: all.mdwn
+ pandoc -o all.tex all.mdwn
--- /dev/null
+\documentclass[a5paper]{article}
+\usepackage[utf8x]{inputenc}
+\usepackage[russian]{babel}
+\title{Рани Ясмина}
+\author{В.Вагнер}
+\begin{document}
+\maketitle
+\tableofcontents
+\input all.tex
+\end{document}
+