Add a new test caller for ALU based on shift_rot test caller
[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 svanalysis
12
13 # now installed as a command (/usr/local/bin/pywriter) by setup.py
14 pywriter:
15 pywriter
16
17 develop:
18 python3 setup.py develop # yes, develop, not install
19
20 # testing (usually done at install time)
21 test: develop
22 python3 setup.py test # could just run nosetest3...
23
24 pypiupload:
25 $(PYTHON3) setup.py sdist upload
26
27 # Minimal makefile for Sphinx documentation
28 #
29
30 # You can set these variables from the command line.
31 SPHINXOPTS =
32 SPHINXBUILD = sphinx-build
33 SPHINXPROJ = Libre-SOC
34 SOURCEDIR = .
35 BUILDDIR = build
36
37 # Put it first so that "make" without argument is like "make help".
38 help:
39 @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
40
41 # copies all documentation to libre-soc (libre-soc admins only)
42 htmlupload: clean html
43 rsync -HPavz --delete build/html/* \
44 libre-soc.org:/var/www/libre-soc.org/docs/openpower-isa/
45
46 # Catch-all target: route all unknown targets to Sphinx using the new
47 # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
48 %: Makefile
49 echo "catch-all falling through to sphinx for document building"
50 mkdir -p "$(SOURCEDIR)"/src/gen
51 sphinx-apidoc --ext-autodoc -o "$(SOURCEDIR)"/src/gen ./src/openpower
52 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
53