-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (28 loc) · 891 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
SOURCE_VERSION = $(shell git describe --long --always --exclude '*')
.PHONY: clean
default: usage
usage:
@echo "USAGE:"
@echo " make command [options]"
@echo
@echo "COMMANDS:"
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed 's/^/ /' | sed -e 's/\\$$/AA/' | sed -e 's/#//g' | column -t -s ":" | sort -k1
rm_pyc: ### clear pyc
@find . -iname '*.pyc' -delete
@find . -iname '__pycache__' -delete
dist_clean: ### dist clean
@rm -rf dist/
@rm -rf build/
@rm -rf *.egg-info
@rm -rf .eggs/
@rm -rf .pytest_cache
clean: dist_clean rm_pyc ### rm_pyc and dict clean
test: dist ### tests
python setup.py test
dist: clean ### build dist package (after clean)
python setup.py sdist
python setup.py bdist_wheel
version: dist ### version
python setup.py --version
license: dist ### some license stufff
python setup.py --license