forked from simomarsili/ndd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (24 loc) · 770 Bytes
/
Makefile
File metadata and controls
25 lines (24 loc) · 770 Bytes
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
INSTALL_PATH=/usr/local
PYTHON=python3
VERSION=$(shell python3 -c "import ndd; print(ndd.__version__)")
default:
$(PYTHON) setup.py install --prefix $(INSTALL_PATH)
build:
$(PYTHON) setup.py build
install:
$(PYTHON) setup.py install --prefix $(INSTALL_PATH)
user:
$(PYTHON) setup.py install --prefix $(HOME)/.local
dist:
@if [ "$(shell git rev-parse --abbrev-ref HEAD)" != "master" ]; then (echo "run `make dist` only in master branch"; exit 1); fi
rm -f dist/*
$(PYTHON) setup.py sdist
tag:
@if [ "$(shell git rev-parse --abbrev-ref HEAD)" != "master" ]; then (echo "run `make tag` only in master branch"; exit 1); fi
@echo "tagging v$(VERSION)..."
git tag v$(VERSION)
git push origin v$(VERSION)
test:
(cd tests; pytest -v)
clean:
rm -r build README.rst