X-Git-Url: http://www.wagner.pp.ru/gitweb/?p=fiction%2FKate-the-Empress.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=3b32789cee3f5f0ee650fb2b9ecfb6af3b777f7f;hp=1ff488d7442014f2db9c99abf31a6c7b0881d83d;hb=b2c4b6e803dcbb86cad5d94c7c765c0308f4d07e;hpb=21b6f240b615bfc093b659cb7eb3bff0771966ca diff --git a/Makefile b/Makefile index 1ff488d..3b32789 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +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 - sed -i.bak -e 's/ -- /\ \— /g' -e 's/ --$$/\ \—/' -e 's/^-- /\— /' Kate-the-Empress.html - 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 --toc --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