mirror of
https://code.dnix.de/da/flokatirc
synced 2026-07-27 07:29:45 +02:00
Makefile added.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user