Merge pull request #59 from sboysel/feature/makefile-tweaks
Makefile tweaks
This commit is contained in:
commit
7d53e79a48
7
Makefile
7
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 ../../$@
|
||||
|
||||
|
@ -25,6 +25,9 @@ test:
|
|||
go test ./...
|
||||
go vet ./...
|
||||
|
||||
install:
|
||||
go install ./cmd/...
|
||||
|
||||
docs: www/data/readme.json
|
||||
cd www && hugo -d ../docs
|
||||
|
||||
|
|
Loading…
Reference in New Issue