pysvp64db: fix traversal
[openpower-isa.git] / Makefile
1 PYTHON3 ?= "python3"
2
3 .PHONY: help Makefile gitupdate svanalysis test htmlupload pypiupload \
4 pyfnwriter pywriter
5
6 gitupdate:
7 git submodule init
8 git submodule update --init --recursive --remote
9
10 # now installed as a command (/usr/local/bin/svanalysis) by setup.py
11 svanalysis:
12 sv_analysis
13
14 # now installed as a command (/usr/local/bin/pywriter) by setup.py
15 pywriter:
16 pywriter
17
18 # likewise
19 pyfnwriter:
20 pyfnwriter
21
22 develop:
23 python3 setup.py develop # yes, develop, not install
24
25 # testing (usually done at install time)
26 test: develop
27 python3 setup.py test # could just run nosetest3...
28
29 pypiupload:
30 $(PYTHON3) setup.py sdist upload
31
32 # Minimal makefile for Sphinx documentation
33 #
34
35 # You can set these variables from the command line.
36 SPHINXOPTS =
37 SPHINXBUILD = sphinx-build
38 SPHINXPROJ = Libre-SOC
39 SOURCEDIR = .
40 BUILDDIR = build
41
42 # Put it first so that "make" without argument is like "make help".
43 help:
44 @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
45
46 # copies all documentation to libre-soc (libre-soc admins only)
47 htmlupload: clean html
48 rsync -HPavz --delete build/html/* \
49 libre-soc.org:/var/www/libre-soc.org/docs/openpower-isa/
50
51 # Catch-all target: route all unknown targets to Sphinx using the new
52 # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
53 %: Makefile
54 echo "catch-all falling through to sphinx for document building"
55 mkdir -p "$(SOURCEDIR)"/src/gen
56 sphinx-apidoc --ext-autodoc -o "$(SOURCEDIR)"/src/gen ./src/openpower
57 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
58