Skip to content

Commit

Permalink
Updated makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
danitso-dp committed May 11, 2019
1 parent 5da1f0f commit 4fe2a95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ default: build

build:
go build \
-o "bin/$(NAME)_v$(VERSION)_x4"
-o "bin/$(NAME)_v$(VERSION)-custom_x4"

fmt:
gofmt -w $(GOFMT_FILES)
Expand All @@ -22,10 +22,10 @@ targets: $(TARGETS)

$(TARGETS):
GOOS=$@ GOARCH=amd64 CGO_ENABLED=0 go build \
-o "dist/$@/$(NAME)_v$(VERSION)_x4" \
-o "dist/$@/$(NAME)_v$(VERSION)-custom_x4" \
-a -ldflags '-extldflags "-static"'
zip \
-j "dist/$(NAME)_v$(VERSION)_$@_amd64.zip" \
"dist/$@/$(NAME)_v$(VERSION)_x4"
-j "dist/$(NAME)_v$(VERSION)-custom_$@_amd64.zip" \
"dist/$@/$(NAME)_v$(VERSION)-custom_x4"

.PHONY: build fmt test init targets $(TARGETS)

0 comments on commit 4fe2a95

Please sign in to comment.