Skip to content

Commit

Permalink
modified makefile for build process excellence
Browse files Browse the repository at this point in the history
  • Loading branch information
zephinzer committed Jun 25, 2021
1 parent 51217f9 commit f3c1ae1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ image_tag ?= $(version)

image_url := $(image_registry)/$(image_namespace)/$(image_name)

binary_name := $(image_name)
binary_name := $(image_name)-${GOOS}-${GOARCH}${BIN_EXT}

# initialises the project (run this before all else)
init:
Expand All @@ -43,7 +43,7 @@ build:
-extldflags 'static' \
-X main.VersionInfo='$(version)' \
" \
-o ./bin/$(binary_name)-${GOOS}-${GOARCH} ./cmd/cloudshell
-o ./bin/$(binary_name) ./cmd/cloudshell

# compresses the application binary
compress:
Expand Down

0 comments on commit f3c1ae1

Please sign in to comment.