From 5b555f0cee7250b2d41e8aa52de77fa7f095e9d8 Mon Sep 17 00:00:00 2001 From: Sam Boysel Date: Sat, 28 May 2022 18:24:10 -0700 Subject: [PATCH 1/2] build before running tests --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b4e0ed3..46336d5 100644 --- a/Makefile +++ b/Makefile @@ -12,12 +12,12 @@ LDFLAGS=\ pomo-build \ readme -default: bin/pomo +default: bin/pomo test clean: [[ -f bin/pomo ]] && rm bin/pomo || true -bin/pomo: test +bin/pomo: cd cmd/pomo && \ go build -ldflags '${LDFLAGS}' -o ../../$@ From e2c67d9161bc7397c5834c4278d7d41762ab5d82 Mon Sep 17 00:00:00 2001 From: Sam Boysel Date: Sat, 28 May 2022 18:31:46 -0700 Subject: [PATCH 2/2] adding install target to Makefile --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 46336d5..c616043 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,9 @@ test: go test ./... go vet ./... +install: + go install ./cmd/... + docs: www/data/readme.json cd www && hugo -d ../docs