-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 806 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 806 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
GOPACKAGES=$(shell find . -name '*.go' -not -path "./vendor/*" -exec dirname {} \; | uniq)
GOFILES_NOVENDOR=$(shell find . -type f -name '*.go' -not -path "./vendor/*")
build:
mkdir -p release/macos
mkdir -p release/linux
mkdir -p release/windows
GOOS=darwin go build -o release/macos/multiwatch
zip release/macos.zip release/macos/multiwatch
GOOS=linux go build -o release/linux/multiwatch
zip release/linux.zip release/linux/multiwatch
GOOS=windows go build -o release/windows/multiwatch.exe
zip release/windows.zip release/windows/multiwatch.exe
watch:
go run main.go
test:
go test -race -coverprofile=coverage.txt -covermode=atomic -v $(GOPACKAGES)
vet:
go vet $(GOPACKAGES)
lint:
ls $(GOFILES_NOVENDOR) | xargs -L1 golint -set_exit_status
imports:
goimports -w $(GOFILES_NOVENDOR)