2 all: coverage mac linux
4 DIRTY
=$(shell [[ -z
`git status --untracked-files=no --porcelain` ]] || echo
"-dirty")
5 GITHASH
=$(shell git log
--pretty
='%H' -1)
7 LDFLAG
=-ldflags "-X 'main.versionGit=$(GITHASH)$(DIRTY)'"
10 go
test -coverprofile .
/cover.out .
/...
11 go tool cover
-html
=cover.out
-o cover.html
14 GOOS
=darwin GOARCH
=amd64 go build
-o mailpopbox-mac-amd64
$(LDFLAG
)
17 GOOS
=linux GOARCH
=amd64 go build
-o mailpopbox-linux-amd64
$(LDFLAG
)