Skip to content

Commit 90e1fbd

Browse files
committed
Add makefile
1 parent f0948ab commit 90e1fbd

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
iap_curl
22
vendor
3+
dist

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.DEFAULT_GOAL := help
2+
3+
.PHONY: all
4+
all:
5+
6+
.PHONY: build
7+
build: ## Build for local environment
8+
@go build
9+
10+
.PHONY: release
11+
release: ## Build for multiple OSs, packaging it and upload to GitHub Release
12+
@bash <(wget -o /dev/null -qO - https://git.io/release-go)
13+
14+
.PHONY: help
15+
help: ## Self-documented Makefile
16+
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
17+
| sort \
18+
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

0 commit comments

Comments
 (0)