-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (28 loc) · 722 Bytes
/
Makefile
File metadata and controls
36 lines (28 loc) · 722 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
26
27
28
29
30
31
32
33
34
35
36
.PHONY: help docs arch test
SHELL ?= /bin/sh
PRYSK = prysk --shell="$(SHELL)" --preserve-env
BUILD_DIR = `pwd`/build/lib
PYTHON = python3
VERSION = $(shell grep '__version__ =' opster.py | cut -d ' ' -f 3 | tr -d "'")
help:
@echo "Use \`make <target>\` with one of targets:"
@echo " docs build docs"
@echo " open open docs"
@echo " arch update archlinux pkgbuild"
@echo " test run tests"
docs:
cd docs && make
open:
cd docs && make open
arch:
$(PYTHON) contrib/updatepkg.py
test:
$(PYTHON) opster.py
$(PRYSK) tests/opster.t
$(PRYSK) tests/py3k.t
coverage:
coverage run -a opster.py
COVERAGE=1 $(PRYSK) tests/opster.t
upload:
python3 setup.py sdist
twine upload dist/opster-$(VERSION).tar.gz