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 \
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue