-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (31 loc) · 796 Bytes
/
Makefile
File metadata and controls
38 lines (31 loc) · 796 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
37
38
ENV=$(CURDIR)/.env
.PHONY: help
# target: help - Display callable targets
help:
@egrep "^# target:" [Mm]akefile
.PHONY: clean
# target: clean - Remove temporary files
clean:
@rm -rf build pydist docs/_build ./dist
@rm -f *.py[co]
@rm -f *.so
@rm -f */*.py[co]
@rm -f */*.orig
@rm -f */*/*.py[co]
.PHONY: env
# target: env - install python develpment packages
env:
@python3 -m venv $(ENV)
$(ENV)/bin/pip install -r requirements.txt
.PHONY: test
# target: test - Runs tests
test: clean
$(ENV)/bin/python -m unittest
.PHONY: build
# target: build - build self-executable tabtools scripts
build: clean
sh build.sh
.PHONY: upload
# target: upload - Upload module on PyPi
upload:
@python setup.py sdist --dist-dir pydist bdist_wheel --dist-dir pydist upload || echo 'Upload already'