flokati/Makefile

41 lines
544 B
Makefile
Raw Normal View History

2016-01-20 19:55:30 +00:00
GOPATH := ${PWD}:${GOPATH}
export GOPATH
default: build
build: test genversion genbuilddate
2016-01-20 19:55:30 +00:00
go build -v flokatirc
build-win: test genversion
GOOS=windows GOARCH=amd64 go build -v -o flokatirc.exe flokatirc
2016-01-20 19:55:30 +00:00
genversion:
./genversion.sh
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