1 all: Kate-the-Empress.pdf Kate-the-Empress.html Kate-the-Empress.epub Kate-the-Empress.fb2.zip
3 Kate-the-Empress.pdf: $(wildcard *.tex)
7 mv book.pdf Kate-the-Empress.pdf
9 Kate-the-Empress.html: onefile.tex
10 pandoc -t html --toc --standalone -o $@ $+
12 Kate-the-Empress.epub: onefile.tex
13 pandoc -t epub --standalone -o $@ $+
15 Kate-the-Empress.fb2.zip: Kate-the-Empress.fb2
16 zip Kate-the-Empress.fb2.zip Kate-the-Empress.fb2
18 Kate-the-Empress.fb2: onefile.tex Tex2fb2 fb2meta.xml
19 ./Tex2fb2 fb2meta.xml onefile.tex >Kate-the-Empress.fb2
21 fb2lint: Kate-the-Empress.fb2 $(wildcard *.xsd)
22 xmllint --schema FictionBook2.1.xsd Kate-the-Empress.fb2 >/dev/null 2>$@
24 onefile.tex: joinfiles.awk $(wildcard *.tex)
25 awk -f joinfiles.awk book.tex > $@
28 rm -f onefile.tex book.log book.aux book.out book.toc