Skip to content

Commit 215aa2d

Browse files
committed
build: clean bin directory before building
- Make `make build` remove the bin/ directory first to ensure only current binaries are present - Prevents old `clipbridge*` artifacts from appearing when users clone and build the project - Improves launch hygiene and first-time contributor experience
1 parent 93dda4b commit 215aa2d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ GO = go
66
GOFLAGS = -trimpath
77

88
build:
9+
@rm -rf bin/
10+
@mkdir -p bin
911
$(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o bin/pastelocal ./cmd/pastelocal
1012
$(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o bin/pastelocald ./cmd/pastelocald
1113
$(GO) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o bin/pastelocal-remote ./cmd/pastelocal-remote

0 commit comments

Comments
 (0)