From bda61721ab449ff397f946e730a028d90c9fc888 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 7 Jun 2020 00:21:37 -0400 Subject: [PATCH] Add simple Makefile for common tasks. --- .gitignore | 4 ++++ Makefile | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 Makefile 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 -- 2.22.5