From: Robert Sesek Date: Sun, 7 Jun 2020 04:21:37 +0000 (-0400) Subject: Add simple Makefile for common tasks. X-Git-Tag: v2.0.0~2 X-Git-Url: https://src.bluestatic.org/?a=commitdiff_plain;h=bda61721ab449ff397f946e730a028d90c9fc888;p=mailpopbox.git Add simple Makefile for common tasks. --- diff --git a/.gitignore b/.gitignore index a79c853..5000e08 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ config.json +cover.html +cover.out mailpopbox +mailpopbox-linux-amd64 +mailpopbox-mac-amd64 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6620afd --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +.PHONY: +all: coverage mac linux + +coverage: + go test -coverprofile ./cover.out ./... + go tool cover -html=cover.out -o cover.html + +mac: + GOOS=darwin GOARCH=amd64 go build -o mailpopbox-mac-amd64 + +linux: + GOOS=linux GOARCH=amd64 go build -o mailpopbox-linux-amd64