Merge pull request #59 from sboysel/feature/makefile-tweaks

Makefile tweaks
This commit is contained in:
Kevin Schoon 2022-05-30 12:14:33 -05:00 committed by GitHub
commit 7d53e79a48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 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 ../../$@
@ -25,6 +25,9 @@ test:
go test ./... go test ./...
go vet ./... go vet ./...
install:
go install ./cmd/...
docs: www/data/readme.json docs: www/data/readme.json
cd www && hugo -d ../docs cd www && hugo -d ../docs