From d02072888d83978bd5b2dbec7f7c6802dab312fb Mon Sep 17 00:00:00 2001 From: Kevin Schoon Date: Tue, 23 Jan 2018 00:27:35 +0800 Subject: [PATCH] update Makefile --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 2afe7b5..dd59b11 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,8 @@ endif all \ test \ docs \ - readme + readme \ + release all: bin/pomo @@ -21,12 +22,12 @@ bindata.go: test: go test ./... -bin/pomo: bindata.go +release: bindata.go @echo mkdir bin 2>/dev/null || true - go build -ldflags "-X main.Version=$(VERSION)" -o bin/pomo + go build -ldflags "-X main.Version=$(VERSION)" -o bin/pomo-$(VERSION)-linux -docs: www/data/readme.json +docs: readme cd www && hugo -d ../docs readme: - cat README.md | python -c 'import json,sys; print(json.dumps({"content": sys.stdin.read()}))' > $@ + cat README.md | python -c 'import json,sys; print(json.dumps({"content": sys.stdin.read()}))' > www/data/readme.json