Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
makfeile filenames change
Browse files Browse the repository at this point in the history
  • Loading branch information
nickname76 committed Nov 20, 2020
1 parent 7b3a246 commit 91f98e6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cmd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ endef
# 2 - GOOS
# 3 - GOARCH
define build-and-zip
$(call build,$(1),$(2),$(3),$(BUILDS_DIRECTORY)/$(BINARY_NAME)-$(1))
cd $(BUILDS_DIRECTORY); zip "./$(BINARY_NAME)-$(1)_$(2)_$(3).zip" "./$(BINARY_NAME)-$(1)"
$(call build,$(1),$(2),$(3),$(BUILDS_DIRECTORY)/$(BINARY_NAME)_$(1))
cd $(BUILDS_DIRECTORY); zip "./$(BINARY_NAME)_$(1)_$(2)_$(3).zip" "./$(BINARY_NAME)_$(1)"
endef

# build-and-zip-all-targets builds and zips binary for all targets
Expand All @@ -45,14 +45,14 @@ define build-and-zip-all-targets
$(call build-and-zip,$(1),linux,arm)
$(call build-and-zip,$(1),linux,arm64)

-rm $(BUILDS_DIRECTORY)/$(BINARY_NAME)-$(1)
-rm $(BUILDS_DIRECTORY)/$(BINARY_NAME)_$(1)

$(call build,$(1),windows,386,$(BUILDS_DIRECTORY)/$(BINARY_NAME)-$(1).exe)
cd $(BUILDS_DIRECTORY); zip "./$(BINARY_NAME)-$(1)_windows_386.zip" "./$(BINARY_NAME)-$(1).exe"
$(call build,$(1),windows,amd64,$(BUILDS_DIRECTORY)/$(BINARY_NAME)-$(1).exe)
cd $(BUILDS_DIRECTORY); zip "./$(BINARY_NAME)-$(1)_windows_amd64.zip" "./$(BINARY_NAME)-$(1).exe"
$(call build,$(1),windows,386,$(BUILDS_DIRECTORY)/$(BINARY_NAME)_$(1).exe)
cd $(BUILDS_DIRECTORY); zip "./$(BINARY_NAME)_$(1)_windows_386.zip" "./$(BINARY_NAME)_$(1).exe"
$(call build,$(1),windows,amd64,$(BUILDS_DIRECTORY)/$(BINARY_NAME)_$(1).exe)
cd $(BUILDS_DIRECTORY); zip "./$(BINARY_NAME)_$(1)_windows_amd64.zip" "./$(BINARY_NAME)_$(1).exe"

-rm $(BUILDS_DIRECTORY)/$(BINARY_NAME)-$(1).exe
-rm $(BUILDS_DIRECTORY)/$(BINARY_NAME)_$(1).exe
endef

all:
Expand Down

0 comments on commit 91f98e6

Please sign in to comment.