forked from funbox/piper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (38 loc) · 1.6 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
################################################################################
# This Makefile generated by GoMakeGen 1.3.0 using next command:
# gomakegen .
#
# More info: https://kaos.sh/gomakegen
################################################################################
.DEFAULT_GOAL := help
.PHONY = fmt vet all clean git-config deps help
VERSION := 1.1.2
BUMPVERSION_PART ?= patch
################################################################################
all: piper ## Build all binaries
piper: ## Build piper binary
go build piper.go
install: ## Install all binaries
cp piper /usr/bin/piper
uninstall: ## Uninstall all binaries
rm -f /usr/bin/piper
git-config: ## Configure git redirects for stable import path services
git config --global http.https://pkg.re.followRedirects true
deps: git-config ## Download dependencies
go get -d -v github.com/gongled/piper
go get -d -v pkg.re/essentialkaos/ek.v9
bump:
bump2version $(BUMPVERSION_PART)
fmt: ## Format source code with gofmt
find . -name "*.go" -exec gofmt -s -w {} \;
vet: ## Runs go vet over sources
go vet -composites=false -printfuncs=LPrintf,TLPrintf,TPrintf,log.Debug,log.Info,log.Warn,log.Error,log.Critical,log.Print ./...
clean: ## Remove generated files
rm -f piper
help: ## Show this info
@echo -e '\n\033[1mSupported targets:\033[0m\n'
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| awk 'BEGIN {FS = ":.*?## "}; {printf " \033[33m%-12s\033[0m %s\n", $$1, $$2}'
@echo -e ''
@echo -e '\033[90mGenerated by GoMakeGen 1.3.0\033[0m\n'
################################################################################