add --cpu=libresoc to Makefile
[soc.git] / Makefile
1 PYTHON3 ?= "python3"
2
3 .PHONY: help Makefile gitupdate install run_sim test htmlupload
4
5 gitupdate:
6 git submodule init
7 git submodule update --recursive
8
9 install:
10 python3 setup.py develop # yes, develop, not install
11 python3 src/soc/decoder/pseudo/pywriter.py
12
13 run_sim: install
14 # TODO: get it to work
15 python3 src/soc/litex/florent/sim.py --cpu=libresoc
16
17 test: install
18 python3 setup.py test # could just run nosetest3...
19
20 # Minimal makefile for Sphinx documentation
21 #
22
23 # You can set these variables from the command line.
24 SPHINXOPTS =
25 SPHINXBUILD = sphinx-build
26 SPHINXPROJ = Libre-SOC
27 SOURCEDIR = .
28 BUILDDIR = build
29
30 # Put it first so that "make" without argument is like "make help".
31 help:
32 @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
33
34 # Catch-all target: route all unknown targets to Sphinx using the new
35 # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
36 %: Makefile
37 mkdir -p "$(SOURCEDIR)"/src/gen
38 sphinx-apidoc --ext-autodoc -o "$(SOURCEDIR)"/src/gen ./src/soc
39 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
40
41 htmlupload: clean html
42 rsync -HPavz --delete build/html/* \
43 libre-soc.org:/var/www/libre-soc.org/docs/soc/