]> www.wagner.pp.ru Git - fiction/Kate-the-Empress.git/blob - Makefile
More or less finished fb2 generation
[fiction/Kate-the-Empress.git] / Makefile
1 all: Kate-the-Empress.pdf Kate-the-Empress.html Kate-the-Empress.epub Kate-the-Empress.fb2.zip
2
3 Kate-the-Empress.pdf: $(wildcard *.tex)
4         pdflatex book
5         pdflatex book
6         pdflatex book
7         mv book.pdf Kate-the-Empress.pdf
8
9 Kate-the-Empress.html: onefile.tex
10         pandoc  -t html  --toc  --standalone -o $@ $+
11
12 Kate-the-Empress.epub: onefile.tex
13         pandoc  -t epub --standalone -o $@ $+
14
15 Kate-the-Empress.fb2.zip: onefile.zip
16         ./Tex2fb2 fb2meta.xml onefile.tex >Kate-the-Empress.fb2
17         zip Kate-the-Empress.fb2.zip Kate-the-Empress.fb2
18         rm Kate-the-Empress.fb2
19
20 onefile.tex: joinfiles.awk $(wildcard *.tex)
21         awk -f joinfiles.awk book.tex >  $@
22
23 clean:
24         rm -f onefile.tex book.log book.aux book.out book.toc