X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=Makefile;h=a0530bffb6f169acc2d24b3d04b91ea4fccd8997;hb=0095b6f95e733390b24df52d31e9c90587ace7c1;hp=da5a74c44acab213e2970d7461e112b97fbad7cd;hpb=10833548e34e3fc6dfa9b6b6bf19b62a2f8b570f;p=soc.git diff --git a/Makefile b/Makefile index da5a74c4..a0530bff 100644 --- a/Makefile +++ b/Makefile @@ -10,3 +10,30 @@ install: test: install python3 setup.py test # could just run nosetest3... + +# Minimal makefile for Sphinx documentation +# + +# You can set these variables from the command line. +SPHINXOPTS = +SPHINXBUILD = sphinx-build +SPHINXPROJ = Libre-SOC +SOURCEDIR = . +BUILDDIR = build + +# Put it first so that "make" without argument is like "make help". +help: + @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +.PHONY: help Makefile + +# Catch-all target: route all unknown targets to Sphinx using the new +# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). +%: Makefile + mkdir -p "$(SOURCEDIR)"/src/gen + sphinx-apidoc --ext-autodoc -o "$(SOURCEDIR)"/src/gen ./src/soc + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +htmlupload: clean html + rsync -HPavz --delete build/html/* \ + libre-soc.org:/var/www/libre-soc.org/docs/soc/