X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=Makefile;h=ccc0a0bab8a2b6ac303be29e43ebbf9e9fa08bcb;hb=f6efd96b89fe55292dd5470ec35dd5263e4d3803;hp=04db8f2d85ee6e205be71a4a9ab47804c337e68c;hpb=81adbbd18060ddf58c47584df87c4705d42b5d30;p=openpower-isa.git diff --git a/Makefile b/Makefile index 04db8f2d..ccc0a0ba 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,31 @@ PYTHON3 ?= "python3" -.PHONY: help Makefile gitupdate svanalysis test htmlupload pypiuload +.PHONY: help Makefile gitupdate svanalysis test htmlupload pypiupload \ + pyfnwriter pywriter generate + +generate: svanalysis pyfnwriter pywriter gitupdate: git submodule init git submodule update --init --recursive --remote +# now installed as a command (/usr/local/bin/svanalysis) by setup.py svanalysis: - python3 openpower/sv_analysis.py + sv_analysis + +# now installed as a command (/usr/local/bin/pywriter) by setup.py +pywriter: | svanalysis + pywriter + +# likewise +pyfnwriter: | pywriter + pyfnwriter develop: python3 setup.py develop # yes, develop, not install # testing (usually done at install time) -test: develop +test: develop setup python3 setup.py test # could just run nosetest3... pypiupload: @@ -36,13 +48,13 @@ help: # copies all documentation to libre-soc (libre-soc admins only) htmlupload: clean html rsync -HPavz --delete build/html/* \ - libre-soc.org:/var/www/libre-soc.org/docs/soc/ + libre-soc.org:/var/www/libre-soc.org/docs/openpower-isa/ # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). %: Makefile echo "catch-all falling through to sphinx for document building" mkdir -p "$(SOURCEDIR)"/src/gen - sphinx-apidoc --ext-autodoc -o "$(SOURCEDIR)"/src/gen ./src/soc + sphinx-apidoc --ext-autodoc -o "$(SOURCEDIR)"/src/gen ./src/openpower @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)