Initial commit
This commit is contained in:
parent
745bfc8d2b
commit
fe8343300a
5 changed files with 166 additions and 4 deletions
43
Makefile
Normal file
43
Makefile
Normal file
|
@ -0,0 +1,43 @@
|
|||
GOPATH := ${PWD}:${GOPATH}
|
||||
export GOPATH
|
||||
|
||||
default: build
|
||||
|
||||
build: genversion genbuilddate test
|
||||
go build -v mmflokati
|
||||
|
||||
build-win: test genversion
|
||||
GOOS=windows GOARCH=amd64 go build -v -o mmflokati.exe mmflokati
|
||||
|
||||
docker: build
|
||||
./dockerbuild.sh
|
||||
|
||||
genversion:
|
||||
./genversion.sh
|
||||
|
||||
genbuilddate:
|
||||
./genbuilddate.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:
|
||||
git commit -a -F changes.log
|
||||
rm changes.log
|
||||
touch changes.log
|
||||
./genversion.sh
|
||||
|
||||
push:
|
||||
git push
|
Loading…
Add table
Add a link
Reference in a new issue