3 .PHONY
: help Makefile gitupdate svanalysis
test htmlupload pypiupload \
4 pyfnwriter pywriter generate
6 generate
: svanalysis pyfnwriter pywriter
10 git submodule update
--init
--recursive
--remote
12 # now installed as a command (/usr/local/bin/svanalysis) by setup.py
16 # now installed as a command (/usr/local/bin/pywriter) by setup.py
17 pywriter
: | svanalysis
21 pyfnwriter
: | pywriter
25 python3 setup.py develop
# yes, develop, not install
27 # testing (usually done at install time)
29 python3 setup.py
test # could just run nosetest3...
32 $(PYTHON3
) setup.py sdist upload
34 # Minimal makefile for Sphinx documentation
37 # You can set these variables from the command line.
39 SPHINXBUILD
= sphinx-build
40 SPHINXPROJ
= Libre-SOC
44 # Put it first so that "make" without argument is like "make help".
46 @
$(SPHINXBUILD
) -M help
"$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS
) $(O
)
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
/
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).
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
)