-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (41 loc) · 888 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
COMPOSE = docker compose
all: verify dist
.PHONY: help
help:
@awk -f ./hack/help.awk $(MAKEFILE_LIST)
##@ code
.PHONY: verify
verify: format lint test ## run all verifications
.PHONY: test
test: ## run tests
$(MAKE) -s _docker_$@
.PHONY: format
format: ## run formatter
$(MAKE) -s _docker_$@
.PHONY: lint
lint: ## run linter
$(MAKE) -s _docker_$@
##@ artifact
.PHONY: install
install: clean dist ## install package locally
$(MAKE) -s _$@
.PHONY: dist
dist: ## generate package artifacts
$(MAKE) -s _$@
.PHONY: docs
docs: ## generate documentation
$(MAKE) -s _$@
.PHONY: deploy
deploy: dist ## deploy Python package to PyPI
$(MAKE) -s _$@
##@ general
.PHONY: deps
deps: ## install dependencies
$(MAKE) -s _$@
.PHONY: clean
clean: ## clean environment
-$(MAKE) -s _$@
_docker_%:
${COMPOSE} build test && ${COMPOSE} run --rm test make _$*
_%:
./hack/$*.sh