-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (26 loc) · 837 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
############## TARGETS SECTION ##############
.PHONY: all test clean
build: # @HELP builds for current GOOS/GOARCH
build:
@goreleaser build --snapshot --single-target --skip-validate
snapshot: # @HELP generate a snapshot for all OS_ARCH combinations
snapshot:
@goreleaser --snapshot --skip-publish
release: # @HELP releases a new version for all OS_ARCH combinations
release:
@goreleaser release
dep-upgrade: # @HELP upgrades all dependencies
dep-upgrade:
@go get -u ./...
@go mod tidy
clean: # @HELP removes built binaries and temporary files
clean:
@rm -rf dist
help: # @HELP prints this message
help:
@echo "TARGETS:"
@grep -E '^.*: *# *@HELP' Makefile \
| awk ' \
BEGIN {FS = ": *# *@HELP"}; \
{ printf " %-30s %s\n", $$1, $$2 }; \
'