Skip to content

Commit

Permalink
Fix Makefile to work the "build" target (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
superbrothers committed Aug 27, 2022
1 parent 2a66b93 commit af6d8f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
GO ?= go
DIST_DIR := dist

.PHONY: build
build: $(GORELEASER)
$(GORELEASER) build --snapshot --rm-dist --single-target --output $(DIST_DIR)/ksort

TOOLS_BIN_DIR := $(CURDIR)/hack/tools/bin
$(shell mkdir -p $(TOOLS_BIN_DIR))

Expand All @@ -24,6 +20,10 @@ $(GOLANGCI_LINT):
$(VALIDATE_KREW_MAIFEST):
GOBIN=$(TOOLS_BIN_DIR) $(GO) install sigs.k8s.io/krew/cmd/validate-krew-manifest@$(VALIDATE_KREW_MAIFEST_VERSION)

.PHONY: build
build: $(GORELEASER)
$(GORELEASER) build --snapshot --rm-dist --single-target --output $(DIST_DIR)/ksort

.PHONY: build-cross
build-cross: $(GORELEASER)
$(GORELEASER) build --snapshot --rm-dist
Expand Down

0 comments on commit af6d8f6

Please sign in to comment.