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}
export GOPATH
VERSONGO = version.go
default: build
build: genversion genbuilddate test
build: genversion test
go build -v mmflokati
build-win: test genversion
GOOS=windows GOARCH=amd64 go build -v -o mmflokati.exe mmflokati
genversion:
./genversion.sh
genbuilddate:
./genbuilddate.sh
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
@ -33,11 +44,10 @@ doc:
test:
go test ./...
commit:
commit: genversion
git commit -a -F changes.log
rm changes.log
touch changes.log
./genversion.sh
push:
git push