-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (33 loc) · 1005 Bytes
/
Makefile
File metadata and controls
42 lines (33 loc) · 1005 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
39
40
41
42
#!make
VERSION := $(shell cat src/version.py | cut -d= -f2 | sed 's/\"//g; s/ //')
export VERSION
.HELP: version ## Show the current version
version:
echo ${VERSION}
.HELP: ver-bug ## Bump the version for a bug
ver-bug:
bash ./scripts/verup.sh bug
.HELP: ver-feature ## Bump the version for a feature
ver-feature:
bash ./scripts/verup.sh feature
.HELP: ver-release ## Bump the version for a release
ver-release:
bash ./scripts/verup.sh release
.HELP: reqs ## Upgrade requirements including pre-commit
reqs:
pre-commit autoupdate
bash ./scripts/compile_requirements.sh
pip install -r requirements.dev.txt
pip install -r requirements.txt
.HELP: docs ## Build the documentation
docs:
bash ./scripts/build-docs.sh
.HELP: check ## Run the sniff check
check:
sudo python ./scripts/sniff_check.py
.HELP: help ## Display this message
help:
@grep -E \
'^.HELP: .*?## .*$$' $(MAKEFILE_LIST) | \
sort | \
awk 'BEGIN {FS = ".HELP: |## "}; {printf "\033[36m%-19s\033[0m %s\n", $$2, $$3}'