Skip to content

Commit

Permalink
RSDK-9975 - have make cli always run (#4790)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuqdog authored Feb 14, 2025
1 parent 4baddac commit 27b7f1e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ build: build-go
build-go:
go build ./...

.PHONY: rm-cli
rm-cli:
rm -f ./bin/$(GOOS)-$(GOARCH)/viam-cli

GOOS ?= $(shell go env GOOS)
GOARCH ?= $(shell go env GOARCH)
bin/$(GOOS)-$(GOARCH)/viam-cli:
bin/$(GOOS)-$(GOARCH)/viam-cli: rm-cli
go build $(LDFLAGS) -tags osusergo,netgo -o $@ ./cli/viam

.PHONY: cli
Expand Down

0 comments on commit 27b7f1e

Please sign in to comment.