Skip to content

Commit 99d3107

Browse files
committed
chore: add build-prod target to makefile for stripped release binaries
1 parent 36b20bc commit 99d3107

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: build run test install db-up db-down db-clean bi fmt fmt-check vet integration-gen integration-test bench race lint
1+
.PHONY: build build-prod run test install db-up db-down db-clean bi fmt fmt-check vet integration-gen integration-test bench race lint
22

33
bi: build install
44

@@ -11,6 +11,9 @@ bench:
1111
build:
1212
go build -o bin/valkyrie
1313

14+
build-prod:
15+
go build -ldflags="-s -w" -o bin/valkyrie
16+
1417
install: build
1518
mkdir -p $(HOME)/go/bin
1619
ln -sf $(shell pwd)/bin/valkyrie $(HOME)/go/bin/valkyrie

0 commit comments

Comments
 (0)