-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
68 lines (50 loc) · 1.37 KB
/
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
59
60
61
62
63
64
65
66
67
68
.DEFAULT_GOAL := help
SHELL := /bin/bash
# Via https://www.thapaliya.com/en/writings/well-documented-makefiles/
# TL;DR:
# - The `##` comments following the target name are the description.
# - The `##@` comments create a group header.
# - Targets that do not have a `##` comment will not be displayed.
.PHONY: help
help:
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
@echo ""
##@ Develop
.PHONY: setup
setup: ## Setup dependencies
./bin/setup.sh
.PHONY: lint
lint: ## Lint the app
@bin/lint.sh
.PHONY: format
format: ## Format the app
@bin/format.sh
.PHONY: run
run: ## Run the app
@bin/run.sh
.PHONY: test
test: ## Test the app
@bin/test.sh
.PHONY: coverage
coverage: ## Show test coverage
@bin/coverage.sh
##@ Build
.PHONY: build
build: ## Build the app
@bin/build.sh
.PHONY: install
install: ## Build and install the app
@bin/install.sh
.PHONY: uninstall
uninstall: ## Uninstall the app
@bin/uninstall.sh
##@ Release
.PHONY: release-status
release-status: ## Show unreleased commits
@bin/release-status.sh
.PHONY: release-tag
release-tag: ## Create the next release tag
@bin/release-tag.sh
.PHONY: release-publish
release-publish: ## Build and publish the release
@bin/release-publish.sh