-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (29 loc) · 908 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
############## 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
test: # @HELP executes the test/test.sh script
test:
@./test/test.sh
help: # @HELP prints this message
help:
@echo "TARGETS:"
@grep -E '^.*: *# *@HELP' Makefile \
| awk ' \
BEGIN {FS = ": *# *@HELP"}; \
{ printf " %-30s %s\n", $$1, $$2 }; \
'