# Makefile for Sphinx documentation # # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter ALLSPHINXOPTS = -d build/.doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes .PHONY: changes linkcheck doctest download upload help: @echo "Please use \`make ' where is one of" @echo " html to make standalone HTML files" @echo " dirhtml to make HTML files named index.html in directories" @echo " pickle to make pickle files" @echo " json to make JSON files" @echo " htmlhelp to make HTML files and a HTML help project" @echo " qthelp to make HTML files and a qthelp project" @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" @echo " changes to make an overview of all changed/added/deprecated items" @echo " linkcheck to check all external links for integrity" @echo " doctest to run all doctests embedded in the documentation (if enabled)" clean: -rm -rf build/* sync: download upload download: # Get new posts rsync -Pa --ignore-existing \ alerce:/srv/llucax/www/blog/posts/ \ source/blog/posts # Get new comments rsync -Pa --ignore-existing \ alerce:/srv/llucax/www/blog/comments/ \ source/blog/comments # Get modified dbs cp source/blog/posts/db /tmp/blog.db.tmp rsync -Pa --update --include '*/db' \ --exclude posts/current --exclude 'posts/*/*' --exclude 'comments/*/*' \ alerce:/srv/llucax/www/blog/comments \ alerce:/srv/llucax/www/blog/posts \ source/blog/ diff /tmp/blog.db.tmp source/blog/posts/db | grep '^-' && ( \ echo "Conflict between posts DBs" && false ) || true chown luca.www-data -R source/blog/comments chmod a+rX,ug+w -R source/blog/comments upload: rsync -Pa --delete source/blog/ build/html/blog rsync -Pa --exclude=\*.swp --exclude=\*.pyc build/html/ alerce:/srv/llucax/www html: $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) build/html cd source/proj/mutest/repo && make doc && \ rsync -a --delete manual.* ../releases ../../../../build/html/proj/mutest/ && \ ln -fs manual.html ../../../../build/html/proj/mutest/index.html rsync -a --delete source/proj/eventxx/ build/html/proj/eventxx rsync -a --delete source/proj/mutt-nntp-debian/files/ build/html/proj/mutt-nntp-debian/files rsync -a --delete source/proj/sadba/files/ build/html/proj/sadba/files rsync -a source/resume/*.pdf build/html/resume/ rsync -a source/proj/dgc/*.pdf build/html/proj/dgc/ rsync -a source/proj/dgc/*.bz2 build/html/proj/dgc/ rsync -a source/proj/dgc/*.png build/html/proj/dgc/ rsync -a source/robots.txt build/html/ @echo @echo "Build finished. The HTML pages are in build/html." dirhtml: $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) build/dirhtml @echo @echo "Build finished. The HTML pages are in build/dirhtml." pickle: $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) build/pickle @echo @echo "Build finished; now you can process the pickle files." json: $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) build/json @echo @echo "Build finished; now you can process the JSON files." htmlhelp: $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) build/htmlhelp @echo @echo "Build finished; now you can run HTML Help Workshop with the" \ ".hhp project file in build/htmlhelp." qthelp: $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) build/qthelp @echo @echo "Build finished; now you can run "qcollectiongenerator" with the" \ ".qhcp project file in build/qthelp, like this:" @echo "# qcollectiongenerator build/qthelp/Lala.qhcp" @echo "To view the help file:" @echo "# assistant -collectionFile build/qthelp/Lala.qhc" latex: $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) build/latex @echo @echo "Build finished; the LaTeX files are in build/latex." @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \ "run these through (pdf)latex." changes: $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) build/changes @echo @echo "The overview file is in build/changes." linkcheck: $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) build/linkcheck @echo @echo "Link check complete; look for any errors in the above output " \ "or in build/linkcheck/output.txt." doctest: $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) build/doctest @echo "Testing of doctests in the sources finished, look at the " \ "results in build/doctest/output.txt."