Skip to content

Commit

Permalink
Merge pull request #278 from adnanh/add-exe-extension-to-windows-build
Browse files Browse the repository at this point in the history
Fix Makefile to include .exe extension for windows builds
  • Loading branch information
adnanh committed Nov 13, 2018
2 parents fc0544e + 98f86cf commit 4e1719d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
OS = darwin freebsd linux openbsd windows
OS = darwin freebsd linux openbsd
ARCHS = 386 arm amd64 arm64

all: build release
all: build release release-windows

build: deps
go build
Expand All @@ -18,6 +18,15 @@ release: clean deps
done \
done

release-windows: clean deps
@for arch in $(ARCHS);\
do \
echo "Building windows-$$arch"; \
mkdir -p build/webhook-windows-$$arch/; \
GOOS=windows GOARCH=$$arch go build -o build/webhook-windows-$$arch/webhook.exe; \
tar cz -C build -f build/webhook-windows-$$arch.tar.gz webhook-windows-$$arch; \
done

test: deps
go test ./...

Expand Down

0 comments on commit 4e1719d

Please sign in to comment.