Makefile now builds everything instead of just main.go, added run function so I can be more lazy

This commit is contained in:
Logan G 2022-07-01 15:06:48 -06:00
parent bf458fdea9
commit c0469667b1
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -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)