From 58ee005456541d76d26b232a143857414584d7fc Mon Sep 17 00:00:00 2001 From: Pranav Bansal Date: Sun, 4 Feb 2024 15:35:10 +0000 Subject: [PATCH] Update Makefile --- Makefile | 16 +++++++++------- cmd/version.txt | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 41e1189..f4b112a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY : dist windows darwin linux +.PHONY : dist windows darwin linux-arm64 linux-amd64 clean DIST_DIR="dist" ZIP="zip -m" @@ -9,7 +9,7 @@ BUILD_FLAGS=-ldflags=$(LDFLAGS) dist: mkdir -p $(DIST_DIR) - $(MAKE) windows darwin linux + $(MAKE) windows darwin linux-arm64 linux-amd64 .PHONY= build-windows windows: @@ -19,12 +19,14 @@ windows: darwin: GOOS=darwin \ go build $(BUILD_FLAGS) -o $(DIST_DIR)/clocks-darwin - chmod +x $(DIST_DIR)/clocks-darwin -linux: - GOOS=linux \ - go build $(BUILD_FLAGS) -o $(DIST_DIR)/clocks-linux - chmod +x $(DIST_DIR)/clocks-linux +linux-arm64: + GOOS=linux GOARCH=arm64 \ + go build $(BUILD_FLAGS) -o $(DIST_DIR)/clocks-linux-arm64 + +linux-amd64: + GOOS=linux GOARCH=amd64 \ + go build $(BUILD_FLAGS) -o $(DIST_DIR)/clocks-linux-amd64 clean: rm -r $(DIST_DIR)/ diff --git a/cmd/version.txt b/cmd/version.txt index 8f0916f..a918a2a 100644 --- a/cmd/version.txt +++ b/cmd/version.txt @@ -1 +1 @@ -0.5.0 +0.6.0