forked from GreyZmeem/python-logging-loki
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 721 Bytes
/
Makefile
File metadata and controls
24 lines (18 loc) · 721 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
printMsg=printf "\033[36m\033[1m%-15s\033[0m\033[36m %-30s\033[0m\n"
.PHONY: test help run lint build dist
## use triple hashes ### to indicate main build targets
help:
@awk 'BEGIN {FS = ":[^#]*? ### "} /^[a-zA-Z_-]+:[^#]* ### / {printf "\033[1m\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
@awk 'BEGIN {FS = ":[^#]*? ## "} /^[a-zA-Z_-]+:[^#]* ## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.DEFAULT_GOAL := help
install-tox: ### Install tox
pip install tox
test: ### Run linting and tests
tox run
upgrade-buildtools:
pip install --upgrade pip
pip install --upgrade setuptools
pip install --upgrade wheel
ci-install: ### CI install
make upgrade-buildtools
make install-tox