-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (33 loc) · 796 Bytes
/
Makefile
File metadata and controls
43 lines (33 loc) · 796 Bytes
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
PKG = github.com/DevMine/srctool
EXEC = srctool
VERSION = 1.0.0
DIR = ${EXEC}-${VERSION}
all: check test build
install:
go install ${PKG}
build:
go build -o ${EXEC} ${PKG}
test:
go test ${PKG}/...
check:
go vet ${PKG}/...
golint ${PKG}/...
package: deps build
test -d ${DIR} || mkdir ${DIR}
cp ${EXEC} ${DIR}/
cp README.md ${DIR}/
tar czvf ${DIR}.tar.gz ${DIR}
rm -rf ${DIR}
deps:
go get -u -v github.com/codegangsta/cli
go get -u -v -f github.com/DevMine/srcanlzr
go get -u -v github.com/gilliek/go-xterm256/xterm256
go get -u -v github.com/mitchellh/ioprogress
go get -u -v golang.org/x/crypto/ssh/terminal
go get -u -v -f github.com/DevMine/repotool/model
dev-deps:
go get -u github.com/golang/lint/golint
cover:
go test -cover ${PKG}/...
clean:
rm -f ./${EXEC}