-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
34 lines (26 loc) · 730 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
.PHONY: all
all: ## Build the code
dune build
.PHONY: clean
clean: ## Clean source tree
dune clean
.PHONY: integration
integration: ## Run integration tests, requires Redis
dune build @integration --force
.PHONY: test
test: integration ## Run the tests
.PHONY: distrib
distrib: ## Create a distribution tarball
dune-release distrib
.PHONY: tag
tag: ## Tag the current release
dune-release tag
.PHONY: publish
publish: ## Put the release on GitHub
dune-release publish distrib
.PHONY: format
format:
dune build @fmt --auto-promote @install
.PHONY: help
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'