X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=Makefile;h=093ca3c3889174f9127e959b769ad9af9200e225;hb=c59e0f4f3cfac38cd4f2cac90ee0a5f7b1c5c231;hp=6d28215400984687e4c7e41b6c577d88952d986d;hpb=871e2a219f6f86d618577850a35f45d1ee4248d9;p=fiction%2FKate-the-Empress.git diff --git a/Makefile b/Makefile index 6d28215..093ca3c 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,11 @@ +SRC_URL=http://www.wagner.pp.ru/~vitus/fiction +UPLOAD_URL=https://www.wagner.pp.ru/dav/vitus/fiction all: Kate-the-Empress.pdf Kate-the-Empress.html Kate-the-Empress.epub Kate-the-Empress.fb2.zip +publish: Kate-the-Empress.pdf Kate-the-Empress.html Kate-the-Empress.epub Kate-the-Empress.fb2.zip + for i in $^; do curl -n -T $$i $(UPLOAD_URL)/$$i || exit 1;done + + Kate-the-Empress.pdf: $(wildcard *.tex) pdflatex book pdflatex book @@ -9,8 +15,10 @@ 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