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