-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (28 loc) · 1.13 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Makefile for Sphinx documentation
#
SPHINXBUILD = sphinx-build
BUILDDIR = docs/build
# 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
.PHONY: help clean html
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
clean:
rm -rf $(BUILDDIR)/*
html:
cp AUTHORS.rst docs/source
cp HISTORY.rst docs/source
cp README.rst docs/source
sphinx-apidoc -f -o docs/source scout_api
sphinx-build -b html -d $(BUILDDIR)/doctrees docs/source $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
upload:
python setup.py sdist upload
python setup.py bdist_wheel upload
python setup.py upload_sphinx
upload_doc:
python setup.py upload_sphinx