Merge branch 'fix/makefile' of github.com:xakon/pomo into xakon-fix/makefile
This commit is contained in:
commit
dd5c21e0eb
18
Makefile
18
Makefile
|
@ -13,22 +13,24 @@ endif
|
||||||
all: bin/pomo
|
all: bin/pomo
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -v bin/* 2> /dev/null || true
|
-rm -fv bin/* docs/*
|
||||||
rm -v docs/* 2> /dev/null || true
|
|
||||||
|
|
||||||
bindata.go:
|
bindata.go: tomato-icon.png
|
||||||
go-bindata -pkg main -o $@ tomato-icon.png
|
go-bindata -pkg main -o $@ $^
|
||||||
|
|
||||||
test:
|
test:
|
||||||
go test ./...
|
go test ./...
|
||||||
go vet ./...
|
go vet ./...
|
||||||
|
|
||||||
release: bindata.go
|
release: bin bindata.go
|
||||||
@echo mkdir bin 2>/dev/null || true
|
|
||||||
go build -ldflags "-X main.Version=$(VERSION)" -o bin/pomo-$(VERSION)-linux
|
go build -ldflags "-X main.Version=$(VERSION)" -o bin/pomo-$(VERSION)-linux
|
||||||
|
|
||||||
docs: readme
|
docs: readme
|
||||||
cd www && hugo -d ../docs
|
cd www && hugo -d ../docs
|
||||||
|
|
||||||
readme:
|
readme: www/data/readme.json
|
||||||
cat README.md | python -c 'import json,sys; print(json.dumps({"content": sys.stdin.read()}))' > www/data/readme.json
|
|
||||||
|
www/data/readme.json: www/data README.md
|
||||||
|
cat README.md | python -c 'import json,sys; print(json.dumps({"content": sys.stdin.read()}))' > $@
|
||||||
|
www/data bin:
|
||||||
|
mkdir -p $@
|
||||||
|
|
Loading…
Reference in New Issue