X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=Makefile;h=b479d1a33875a1ab16495fe61fb304c2095fb7d6;hb=30c3bf7433aa49a0ab346eac638c71be69fd376c;hp=e8fe561bfd5d2f1c5d3d110ce4ccbc7a724b666f;hpb=8ff9d8c3848b7a2a2105ff4ce64c7e27bacff37c;p=fiction%2FKate-the-Empress.git diff --git a/Makefile b/Makefile index e8fe561..b479d1a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -all: Kate-the-Empress.pdf Kate-the-Empress.html Kate-the-Empress.epub +all: Kate-the-Empress.pdf Kate-the-Empress.html Kate-the-Empress.epub Kate-the-Empress.fb2.zip Kate-the-Empress.pdf: $(wildcard *.tex) pdflatex book @@ -9,11 +9,22 @@ Kate-the-Empress.pdf: $(wildcard *.tex) Kate-the-Empress.html: onefile.tex pandoc -t html --toc --standalone -o $@ $+ -Kate-the-Empress.epub: onefile.tex - pandoc -t epub --standalone -o $@ $+ +Kate-the-Empress.epub: onefile.tex epub-metadata.xml + cat epub-metadata.xml > metadata-tmp.xml + echo "`date +%Y-%m-%d`">> metadata-tmp.xml + pandoc -t epub --epub-metadata=metadata-tmp.xml --standalone -o $@ $+ + +Kate-the-Empress.fb2.zip: Kate-the-Empress.fb2 + zip Kate-the-Empress.fb2.zip Kate-the-Empress.fb2 + +Kate-the-Empress.fb2: onefile.tex Tex2fb2 fb2meta.xml + ./Tex2fb2 fb2meta.xml onefile.tex >Kate-the-Empress.fb2 + +fb2lint: Kate-the-Empress.fb2 $(wildcard *.xsd) + xmllint --schema FictionBook2.1.xsd Kate-the-Empress.fb2 >/dev/null 2>$@ 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 + rm -f onefile.tex book.log book.aux book.out book.toc Kate-the-Empress.fb2 fb2lint