Skip to content
Myr

Split ebook build process into own make target.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ron DuPlain · committed by Ron DuPlain · parent 8d7ca29 · Browse files · 1 file+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−2 removed

  • other:+4 added−2 removed

1 file+4 added−2 removed

modified:Makefile+4 added-2 removed
20 unmodified lines
21 find . -name '*.pyc' -exec rm -f {} +22 find . -name '*.pyo' -exec rm -f {} +23 find . -name '*~' -exec rm -f {} +2425# ebook-convert docs: http://manual.calibre-ebook.com/cli/ebook-convert.html25upload-docs:26 $(MAKE) -C docs html dirhtml latex epub27 $(MAKE) -C docs/_build/latex all-pdf28 cd docs/_build/; mv html flask-docs; zip -r flask-docs.zip flask-docs; mv flask-docs html29 rsync -a docs/_build/dirhtml/ pocoo.org:/var/www/flask.pocoo.org/docs/30 rsync -a docs/_build/latex/Flask.pdf pocoo.org:/var/www/flask.pocoo.org/docs/flask-docs.pdf31 rsync -a docs/_build/flask-docs.zip pocoo.org:/var/www/flask.pocoo.org/docs/flask-docs.zip32 rsync -a docs/_build/epub/Flask.epub pocoo.org:/var/www/flask.pocoo.org/docs/flask-docs.epub34 @echo 'Building .mobi from .epub...'3334# ebook-convert docs: http://manual.calibre-ebook.com/cli/ebook-convert.html35ebook:36 @echo 'Using .epub from `make upload-docs` to create .mobi.'37 @echo 'Command `ebook-covert` is provided by calibre package.'38 @echo 'Requires X-forwarding for Qt features used in conversion (ssh -X).'39 @echo 'Do not mind "Invalid value for ..." CSS errors if .mobi renders.'40 ssh -X pocoo.org ebook-convert /var/www/flask.pocoo.org/docs/flask-docs.epub /var/www/flask.pocoo.org/docs/flask-docs.mobi --cover http://flask.pocoo.org/docs/_images/logo-full.png --authors 'Armin Ronacher'
3 unmodified lines