-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
39 lines (32 loc) · 890 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
37
38
39
install:
go get github.com/Masterminds/glide
go get github.com/golang/lint/golint
go get github.com/gordonklaus/ineffassign
go get github.com/client9/misspell/cmd/misspell
go get github.com/jteeuwen/go-bindata/...
glide install
templates-debug:
go-bindata \
-o ./pkg/templates/bindata.go \
-pkg templates \
-debug \
-prefix "bindata" \
bindata/...
templates-release:
go-bindata \
-o ./pkg/templates/bindata.go \
-pkg templates \
-prefix "bindata" \
bindata/...
test: templates-debug
ineffassign ./
misspell -error README.md ./pkg/**/*
gofmt -d -s -e ./pkg/
go test ./pkg/...
format:
gofmt -d -w -s -e ./pkg/
build-linux: templates-release
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-w" -o ./pavlik ./main.go
docker: build-linux
docker build -t pavlik:1 .
.PHONY: install templates-debug templates-release test format build-linux docker