build before running tests

This commit is contained in:
Sam Boysel 2022-05-28 18:24:10 -07:00
parent b6910ea72a
commit 5b555f0cee
1 changed files with 2 additions and 2 deletions

View File

@ -12,12 +12,12 @@ LDFLAGS=\
pomo-build \ pomo-build \
readme readme
default: bin/pomo default: bin/pomo test
clean: clean:
[[ -f bin/pomo ]] && rm bin/pomo || true [[ -f bin/pomo ]] && rm bin/pomo || true
bin/pomo: test bin/pomo:
cd cmd/pomo && \ cd cmd/pomo && \
go build -ldflags '${LDFLAGS}' -o ../../$@ go build -ldflags '${LDFLAGS}' -o ../../$@