]> www.wagner.pp.ru Git - fiction/Kate-the-Empress.git/blobdiff - Makefile
Поправили мажордома
[fiction/Kate-the-Empress.git] / Makefile
index c6aa90e0af2fcfa86b3995c841450e839308b002..6d28215400984687e4c7e41b6c577d88952d986d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,13 +12,17 @@ Kate-the-Empress.html: onefile.tex
 Kate-the-Empress.epub: onefile.tex
        pandoc  -t epub --standalone -o $@ $+
 
-Kate-the-Empress.fb2.zip: onefile.zip
-       ./Tex2fb2 fb2meta.xml onefile.tex >Kate-the-Empress.fb2
+Kate-the-Empress.fb2.zip: Kate-the-Empress.fb2
        zip Kate-the-Empress.fb2.zip Kate-the-Empress.fb2
-       rm 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