-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
52 lines (40 loc) · 1.17 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
PWD=$(shell pwd)
all: package
convert:
wat2wasm resources/debug.wat -o resources/debug.wasm
wat2wasm resources/debug.wat -v > resources/debug.text
tools/bin2coe.py --input resources/debug.wasm --output resources/debug.coe
prepare:
@mkdir -p work
project: prepare hxs
@vivado -mode batch -source scripts/create_project.tcl -notrace -nojournal -tempDir work -log work/vivado.log
package: hxs
python3 setup.py sdist bdist_wheel
clean:
@find ip ! -iname *.xci -type f -exec rm {} +
@rm -rf .Xil vivado*.log vivado*.str vivado*.jou
@rm -rf work \
src-gen \
hxs_gen \
*.egg-info \
docs/_build \
dist \
build \
@rm -rf ip/**/hdl \
ip/**/synth \
ip/**/example_design \
ip/**/sim \
ip/**/simulation \
ip/**/misc \
ip/**/doc
hxs:
hxsc -o resources vhdl hxs
install-from-test-pypi:
pip3 install --upgrade -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple wasm-fpga-stack
upload-to-test-pypi: package
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
upload-to-pypi: package
python3 -m twine upload --repository pypi dist/*
docs:
(cd docs && make html)
.PHONY: all prepare project package clean hxs docs