2016-01-20 19:55:30 +00:00
|
|
|
GOPATH := ${PWD}:${GOPATH}
|
|
|
|
export GOPATH
|
|
|
|
|
|
|
|
default: build
|
|
|
|
|
2016-01-24 14:48:28 +00:00
|
|
|
build: test genversion genbuilddate
|
2016-01-20 19:55:30 +00:00
|
|
|
go build -v flokatirc
|
|
|
|
|
|
|
|
build-win: test genversion
|
2016-01-24 14:48:28 +00:00
|
|
|
GOOS=windows GOARCH=amd64 go build -v -o flokatirc.exe flokatirc
|
2016-01-20 19:55:30 +00:00
|
|
|
|
|
|
|
genversion:
|
|
|
|
./genversion.sh
|
|
|
|
|
2016-01-24 14:48:28 +00:00
|
|
|
genbuilddate:
|
|
|
|
./genbuilddate.sh
|
|
|
|
|
2016-01-20 19:55:30 +00:00
|
|
|
fmt:
|
|
|
|
go fmt ./...
|
|
|
|
|
|
|
|
fix:
|
|
|
|
go fix ./...
|
|
|
|
|
|
|
|
imports:
|
|
|
|
find . -type f -name "*.go" -exec goimports -w {} \;
|
|
|
|
|
|
|
|
doc:
|
|
|
|
godoc -http=:6060 -index
|
|
|
|
|
|
|
|
test:
|
|
|
|
go test ./...
|
|
|
|
|
|
|
|
commit:
|
|
|
|
git commit -a -F changes.log
|
|
|
|
rm changes.log
|
|
|
|
touch changes.log
|
|
|
|
./genversion.sh
|
|
|
|
|
|
|
|
push:
|
|
|
|
git push
|