Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
prnvbn committed Feb 4, 2024
1 parent b2a63c3 commit 58ee005
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY : dist windows darwin linux
.PHONY : dist windows darwin linux-arm64 linux-amd64 clean

DIST_DIR="dist"
ZIP="zip -m"
Expand All @@ -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:
Expand All @@ -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)/
2 changes: 1 addition & 1 deletion cmd/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.0
0.6.0

0 comments on commit 58ee005

Please sign in to comment.