forked from m-labs/VexRiscv-verilog
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
50 lines (32 loc) · 779 Bytes
/
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
ACTIVATE=[[ -e venv/bin/activate ]] && source venv/bin/activate;
SHELL := /bin/bash
clean:
rm -rf build dist pythondata_*.egg-info
.PHONY: clean
venv-clean:
rm -rf venv
.PHONY: venv-clean
venv:
virtualenv --python=python3 venv
${ACTIVATE} pip install twine
.PHONY: venv
build:
${ACTIVATE} python setup.py sdist bdist_wheel
@rm -f dist/*.egg
.PHONY: build
# PYPI_TEST = --repository-url https://test.pypi.org/legacy/
PYPI_TEST = --repository testpypi
upload-test: build
@rm -f dist/*.egg
${ACTIVATE} twine upload ${PYPI_TEST} dist/*
.PHONY: upload-test
upload: build
@rm -f dist/*.egg
${ACTIVATE} twine upload --verbose dist/*
.PHONY: upload
install:
${ACTIVATE} python setup.py install
.PHONY: install
test:
${ACTIVATE} python test.py
.PHONY: test