Makefile now builds everything instead of just main.go, added run function so I can be more lazy
This commit is contained in:
parent
bf458fdea9
commit
c0469667b1
1 changed files with 4 additions and 1 deletions
5
Makefile
5
Makefile
|
@ -5,7 +5,10 @@ BUILD_DATE := $(shell date -u +.%Y%m%d.%H%M%S)
|
|||
CGO_ENABLED=0
|
||||
|
||||
default:
|
||||
CGO_ENABLED=$(CGO_ENABLED) go build -o out/engibot -trimpath -ldflags "-s -w -X main.gitCommit=$(GIT_COMMIT)" main.go
|
||||
CGO_ENABLED=$(CGO_ENABLED) go build -o out/engibot -trimpath -ldflags "-s -w -X main.gitCommit=$(GIT_COMMIT)" .
|
||||
|
||||
debug:
|
||||
go build -o out/ -ldflags "-X main.gitCommit=$(GIT_COMMIT)" main.go
|
||||
|
||||
run:
|
||||
go run . --token $(TOKEN)
|
||||
|
|
Loading…
Reference in a new issue