Skip to content

Commit 50f3b77

Browse files
praveenkumaranjannath
authored andcommitted
Rename darwin to macos
We decided to have macos as per our artifacts instead using darwin.
1 parent e6f8a42 commit 50f3b77

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ binappend:
7777
install: $(SOURCES)
7878
go install -ldflags="$(VERSION_VARIABLES)" ./cmd/crc
7979

80-
$(BUILD_DIR)/darwin-amd64/crc: $(SOURCES)
81-
GOARCH=amd64 GOOS=darwin go build -ldflags="$(LDFLAGS)" -o $(BUILD_DIR)/darwin-amd64/crc ./cmd/crc
80+
$(BUILD_DIR)/macos-amd64/crc: $(SOURCES)
81+
GOARCH=amd64 GOOS=darwin go build -ldflags="$(LDFLAGS)" -o $(BUILD_DIR)/macos-amd64/crc ./cmd/crc
8282

8383
$(BUILD_DIR)/linux-amd64/crc: $(SOURCES)
8484
GOOS=linux GOARCH=amd64 go build -ldflags="$(LDFLAGS)" -o $(BUILD_DIR)/linux-amd64/crc ./cmd/crc
@@ -87,7 +87,7 @@ $(BUILD_DIR)/windows-amd64/crc.exe: $(SOURCES)
8787
GOARCH=amd64 GOOS=windows go build -ldflags="$(LDFLAGS)" -o $(BUILD_DIR)/windows-amd64/crc.exe ./cmd/crc
8888

8989
.PHONY: cross ## Cross compiles all binaries
90-
cross: $(BUILD_DIR)/darwin-amd64/crc $(BUILD_DIR)/linux-amd64/crc $(BUILD_DIR)/windows-amd64/crc.exe
90+
cross: $(BUILD_DIR)/macos-amd64/crc $(BUILD_DIR)/linux-amd64/crc $(BUILD_DIR)/windows-amd64/crc.exe
9191

9292
.PHONY: test
9393
test:
@@ -125,10 +125,10 @@ fmtcheck: ## Checks for style violation using gofmt
125125
release: fmtcheck embed_bundle
126126
mkdir $(RELEASE_DIR)
127127

128-
@mkdir -p $(BUILD_DIR)/crc-darwin-amd64
129-
@cp LICENSE $(BUILD_DIR)/darwin-amd64/crc $(BUILD_DIR)/crc-darwin-amd64
130-
tar cJSf $(RELEASE_DIR)/crc-darwin-amd64.tar.xz -C $(BUILD_DIR) crc-darwin-amd64
131-
sha256sum $(RELEASE_DIR)/crc-darwin-amd64.tar.xz > $(RELEASE_DIR)/sha256sum.txt
128+
@mkdir -p $(BUILD_DIR)/crc-macos-amd64
129+
@cp LICENSE $(BUILD_DIR)/macos-amd64/crc $(BUILD_DIR)/crc-macos-amd64
130+
tar cJSf $(RELEASE_DIR)/crc-macos-amd64.tar.xz -C $(BUILD_DIR) crc-macos-amd64
131+
sha256sum $(RELEASE_DIR)/crc-macos-amd64.tar.xz > $(RELEASE_DIR)/sha256sum.txt
132132

133133
@mkdir -p $(BUILD_DIR)/crc-linux-amd64
134134
@cp LICENSE $(BUILD_DIR)/linux-amd64/crc $(BUILD_DIR)/crc-linux-amd64
@@ -151,5 +151,5 @@ check_bundledir:
151151
embed_bundle: LDFLAGS += $(BUNDLE_EMBEDDED)
152152
embed_bundle: clean cross binappend check_bundledir $(BUNDLES)
153153
binappend-cli write $(BUILD_DIR)/linux-amd64/crc $(BUNDLE_DIR)/crc_libvirt_$(BUNDLE_VERSION).$(BUNDLE_EXTENSION)
154-
binappend-cli write $(BUILD_DIR)/darwin-amd64/crc $(BUNDLE_DIR)/crc_hyperkit_$(BUNDLE_VERSION).$(BUNDLE_EXTENSION)
154+
binappend-cli write $(BUILD_DIR)/macos-amd64/crc $(BUNDLE_DIR)/crc_hyperkit_$(BUNDLE_VERSION).$(BUNDLE_EXTENSION)
155155
binappend-cli write $(BUILD_DIR)/windows-amd64/crc.exe $(BUNDLE_DIR)/crc_hyperv_$(BUNDLE_VERSION).$(BUNDLE_EXTENSION)

0 commit comments

Comments
 (0)