X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=e8fe561bfd5d2f1c5d3d110ce4ccbc7a724b666f;hb=37b1eefaa8690036f7e07615a62556746c4e91f4;hp=72b28023fc5dfc097ee206bd197c726e6b04e3b9;hpb=f33ec9d1fd6fb24d4d2e0e27fd17d8ed89825ef1;p=fiction%2FKate-the-Empress.git diff --git a/Makefile b/Makefile index 72b2802..e8fe561 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,19 @@ -all: Kate-the-Empress.pdf Kate-the-Empress.html +all: Kate-the-Empress.pdf Kate-the-Empress.html Kate-the-Empress.epub Kate-the-Empress.pdf: $(wildcard *.tex) + pdflatex book + pdflatex book pdflatex book mv book.pdf Kate-the-Empress.pdf -Kate-the-Empress.html: $(wildcard *.tex) - cp book.tex Kate-the-Empress.tex - latex2html -no_navigation -split=0 -no_subdir -prefix=Kate-the-Empress Kate-the-Empress.tex - rm Kate-the-Empress.tex +Kate-the-Empress.html: onefile.tex + pandoc -t html --toc --standalone -o $@ $+ + +Kate-the-Empress.epub: onefile.tex + pandoc -t epub --standalone -o $@ $+ + +onefile.tex: joinfiles.awk $(wildcard *.tex) + awk -f joinfiles.awk book.tex > $@ + +clean: + rm -f onefile.tex book.log book.aux book.out book.toc