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