whoops Makefile error
[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 pywriter:
17 python3 src/soc/decoder/pseudo/pywriter.py
18
19 svanalysis:
20 python3 libreriscv/openpower/sv_analysis.py
21
22 develop:
23 python3 setup.py develop # yes, develop, not install
24 python3 src/soc/decoder/pseudo/pywriter.py
25
26 run_sim:
27 python3 src/soc/simple/issuer_verilog.py --disable-svp64\
28 src/soc/litex/florent/libresoc/libresoc.v
29 python3 src/soc/litex/florent/sim.py --cpu=libresoc
30
31 testgpio_run_sim:
32 python3 src/soc/simple/issuer_verilog.py \
33 src/soc/litex/florent/libresoc/libresoc.v \
34 --enable-testgpio
35 python3 src/soc/litex/florent/sim.py --cpu=libresoc \
36 --variant=standardjtagtestgpio
37
38 ls180_verilog:
39 python3 src/soc/simple/issuer_verilog.py \
40 --debug=jtag --enable-core --enable-pll \
41 --enable-xics --enable-sram4x4kblock --disable-svp64 \
42 src/soc/litex/florent/libresoc/libresoc.v
43
44 test: install
45 python3 setup.py test # could just run nosetest3...
46
47 # Minimal makefile for Sphinx documentation
48 #
49
50 # You can set these variables from the command line.
51 SPHINXOPTS =
52 SPHINXBUILD = sphinx-build
53 SPHINXPROJ = Libre-SOC
54 SOURCEDIR = .
55 BUILDDIR = build
56
57 # Put it first so that "make" without argument is like "make help".
58 help:
59 @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
60
61 # Catch-all target: route all unknown targets to Sphinx using the new
62 # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
63 %: Makefile
64 mkdir -p "$(SOURCEDIR)"/src/gen
65 sphinx-apidoc --ext-autodoc -o "$(SOURCEDIR)"/src/gen ./src/soc
66 @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
67
68 htmlupload: clean html
69 rsync -HPavz --delete build/html/* \
70 libre-soc.org:/var/www/libre-soc.org/docs/soc/