changed Makefile
the build was successful Details

This commit is contained in:
an 2018-04-01 10:50:18 +02:00
parent 7f1d4e2758
commit 6fb79f8b21
1 changed files with 17 additions and 7 deletions

View File

@ -1,19 +1,30 @@
GOPATH := ${PWD}:${GOPATH} GOPATH := ${PWD}:${GOPATH}
export GOPATH export GOPATH
VERSONGO = version.go
default: build default: build
build: genversion genbuilddate test build: genversion test
go build -v mmflokati go build -v mmflokati
build-win: test genversion build-win: test genversion
GOOS=windows GOARCH=amd64 go build -v -o mmflokati.exe mmflokati GOOS=windows GOARCH=amd64 go build -v -o mmflokati.exe mmflokati
genversion: genversion:
./genversion.sh echo "package main" > version.go
echo "" >>version.go
genbuilddate: echo "const (" >>version.go
./genbuilddate.sh 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 docker: build
./dockerbuild.sh ./dockerbuild.sh
@ -33,11 +44,10 @@ doc:
test: test:
go test ./... go test ./...
commit: commit: genversion
git commit -a -F changes.log git commit -a -F changes.log
rm changes.log rm changes.log
touch changes.log touch changes.log
./genversion.sh
push: push:
git push git push