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