Adding release targets to Makefile

This commit is contained in:
mdr0id 2019-10-13 14:43:18 -07:00
parent 12d3ac0649
commit 3e0d3c2d4d
1 changed files with 4 additions and 0 deletions

View File

@ -94,6 +94,10 @@ build:
GO111MODULE=on CGO_ENABLED=1 go build -i -v ./cmd/ingest
GO111MODULE=on CGO_ENABLED=1 go build -i -v ./cmd/server
build_rel:
GO111MODULE=on CGO_ENABLED=1 GOOS=linux go build -ldflags="-s -w" -i -v ./cmd/ingest
GO111MODULE=on CGO_ENABLED=1 GOOS=linux go build -ldflags="-s -w" -i -v ./cmd/server
# Install binaries into Go path
install:
go install ./...