Skip to content
Snippets Groups Projects
Select Git revision
  • f3f5e975e47f1e7e3d0c9a46ee17f36204f15daf
  • wip-bootstrap default
  • dualcore
  • ch3/leds
  • ch3/time
  • master
6 results

Makefile

Blame
  • Makefile 6.64 KiB
    # Makefile for Sphinx documentation
    #
    
    # You can set these variables from the command line.
    SPHINXOPTS    =
    SPHINXBUILD   = sphinx-build
    PAPER         =
    BUILDDIR      = build/$(MICROPY_PORT)
    
    # User-friendly check for sphinx-build
    ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
    $(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
    endif
    
    # Internal variables.
    PAPEROPT_a4     = -D latex_paper_size=a4
    PAPEROPT_letter = -D latex_paper_size=letter
    ALLSPHINXOPTS   = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
    # the i18n builder cannot share the environment and doctrees with the others
    I18NSPHINXOPTS  = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
    
    .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
    
    help:
    	@echo "Please use \`make <target>' where <target> is one of"
    	@echo "  html       to make standalone HTML files"
    	@echo "  dirhtml    to make HTML files named index.html in directories"
    	@echo "  singlehtml to make a single large HTML file"
    	@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 "  devhelp    to make HTML files and a Devhelp project"
    	@echo "  epub       to make an epub"
    	@echo "  latex      to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
    	@echo "  latexpdf   to make LaTeX files and run them through pdflatex"
    	@echo "  latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
    	@echo "  text       to make text files"
    	@echo "  man        to make manual pages"
    	@echo "  texinfo    to make Texinfo files"
    	@echo "  info       to make Texinfo files and run them through makeinfo"
    	@echo "  gettext    to make PO message catalogs"
    	@echo "  changes    to make an overview of all changed/added/deprecated items"
    	@echo "  xml        to make Docutils-native XML files"
    	@echo "  pseudoxml  to make pseudoxml-XML files for display purposes"
    	@echo "  linkcheck  to check all external links for integrity"
    	@echo "  doctest    to run all doctests embedded in the documentation (if enabled)"
    
    clean:
    	rm -rf $(BUILDDIR)/*
    
    html:
    	$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
    	@echo
    	@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
    
    dirhtml:
    	$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
    	@echo
    	@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
    
    singlehtml:
    	$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
    	@echo
    	@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
    
    pickle:
    	$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
    	@echo
    	@echo "Build finished; now you can process the pickle files."