Skip to content

Commit

Permalink
build: replace amd64 with GOARCH in make target 'release'
Browse files Browse the repository at this point in the history
this allows to run 'make release' on an arm64 host where
build output dir is out/linux-arm64 not out/linux-amd64
  • Loading branch information
anjannath authored and praveenkumar committed Jul 16, 2024
1 parent 0849cb8 commit 1a915c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ linux-release: clean lint linux-release-binary embed_crc_helpers gen_release_inf
mkdir $(RELEASE_DIR)

@mkdir -p $(BUILD_DIR)/crc-linux-$(CRC_VERSION)-${GOARCH}
@cp LICENSE $(BUILD_DIR)/linux-amd64/crc $(BUILD_DIR)/crc-linux-$(CRC_VERSION)-${GOARCH}
@cp LICENSE $(BUILD_DIR)/linux-${GOARCH}/crc $(BUILD_DIR)/crc-linux-$(CRC_VERSION)-${GOARCH}
tar cJSf $(RELEASE_DIR)/crc-linux-${GOARCH}.tar.xz -C $(BUILD_DIR) crc-linux-$(CRC_VERSION)-${GOARCH} --owner=0 --group=0

@cp $(RELEASE_INFO) $(RELEASE_DIR)/$(RELEASE_INFO)
Expand Down

0 comments on commit 1a915c7

Please sign in to comment.