changed Makefile
the build was successful
Details
the build was successful
Details
This commit is contained in:
parent
7f1d4e2758
commit
6fb79f8b21
24
Makefile
24
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue