forked from an/flokati
41 lines
544 B
Makefile
41 lines
544 B
Makefile
GOPATH := ${PWD}:${GOPATH}
|
|
export GOPATH
|
|
|
|
default: build
|
|
|
|
build: test genversion genbuilddate
|
|
go build -v flokatirc
|
|
|
|
build-win: test genversion
|
|
GOOS=windows GOARCH=amd64 go build -v -o flokatirc.exe flokatirc
|
|
|
|
genversion:
|
|
./genversion.sh
|
|
|
|
genbuilddate:
|
|
./genbuilddate.sh
|
|
|
|
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
|