speed up ==, hash, <, >, <=, and >= for plain_data
[nmutil.git] / Makefile
1 PYTHON3 ?= "python3"
2
3 .PHONY: help Makefile install test htmlupload
4
5 install:
6 $(PYTHON3) setup.py develop # yes, develop, not install
7
8 test:
9 $(PYTHON3) setup.py test # could just run nosetest3...
10
11 pypiupload:
12 $(PYTHON3) setup.py sdist upload
13
14 # Minimal makefile for Sphinx documentation
15 #
16
17 # You can set these variables from the command line.
18 SPHINXOPTS =
19 SPHINXBUILD = sphinx-build
20 SPHINXPROJ = nmutil
21 SOURCEDIR = .
22 BUILDDIR = build
23
24 # Put it first so that "make" without argument is like "make help".
25 help:
26 @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
27
28 # copies all documentation to libre-soc (libre-soc admins only)
29 htmlupload: clean html
30 rsync -HPavz --delete build/html/* \
31 libre-soc.org:/var/www/libre-soc.org/docs/nmutil/
32
33 # Catch-all target: route all unknown targets to Sphinx using the new
34 # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
35 %: Makefile
36 echo "catch-all falling through to sphinx for document building"
37 mkdir -p "$(SOURCEDIR)"/src/gen
38 sphinx-apidoc --ext-autodoc -o "$(SOURCEDIR)"/src/gen ./src/nmutil
39 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)