forked from an/flokati
Makefile added.
This commit is contained in:
parent
9f5d94b24d
commit
6b0e3a1dbf
3 changed files with 50 additions and 10 deletions
37
Makefile
Normal file
37
Makefile
Normal file
|
@ -0,0 +1,37 @@
|
|||
GOPATH := ${PWD}:${GOPATH}
|
||||
export GOPATH
|
||||
|
||||
default: build
|
||||
|
||||
build: test genversion
|
||||
go build -v flokatirc
|
||||
|
||||
build-win: test genversion
|
||||
GOOS=windows GOARCH=amd64 go build -v -o ./build/bin/flokatirc.exe flokatirc
|
||||
|
||||
genversion:
|
||||
./genversion.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