GOPATH := ${PWD}:${GOPATH} export GOPATH VERSONGO = version.go default: build build: genversion test go build -v mmflokati build-win: test genversion GOOS=windows GOARCH=amd64 go build -v -o mmflokati.exe mmflokati genversion: echo "package main" > version.go echo "" >>version.go echo "const (" >>version.go echo -n " FlokatiVersion = \"" >>version.go echo -n "" >>version.go echo "\"" >>version.go echo -n " FlokatiBuild = \"" >>version.go echo -n "" >>version.go echo "\"" >>version.go echo -n " FlokatiBuilddate = \"" >>version.go echo -n "" >>version.go echo "\"" >>version.go echo ")" >>version.go docker: build ./dockerbuild.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: genversion git commit -a -F changes.log rm changes.log touch changes.log push: git push