git submodule update
[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 --init --recursive --remote
8
9 mkpinmux:
10 ./mkpinmux.sh
11 cp pinmux/ls180/ls180_pins.py src/soc/debug
12 cp pinmux/ls180/ls180_pins.py src/soc/litex/florent/libresoc
13
14 install: develop mkpinmux
15
16 develop:
17 python3 setup.py develop # yes, develop, not install
18 python3 src/soc/decoder/pseudo/pywriter.py
19
20 run_sim: install
21 python3 src/soc/simple/issuer_verilog.py src/soc/litex/florent/libresoc/libresoc.v
22 python3 src/soc/litex/florent/sim.py --cpu=libresoc
23
24 test: install
25 python3 setup.py test # could just run nosetest3...
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 # Catch-all target: route all unknown targets to Sphinx using the new
42 # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
43 %: Makefile
44 mkdir -p "$(SOURCEDIR)"/src/gen
45 sphinx-apidoc --ext-autodoc -o "$(SOURCEDIR)"/src/gen ./src/soc
46 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
47
48 htmlupload: clean html
49 rsync -HPavz --delete build/html/* \
50 libre-soc.org:/var/www/libre-soc.org/docs/soc/