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}
|
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
|
||||||
|
|
Loading…
Reference in New Issue