Skip to content

Commit 9fba09b

Browse files
committed
Add rule for building Windows binaries
Signed-off-by: Deep Debroy <[email protected]>
1 parent 0400867 commit 9fba09b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build.make

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ endif
6363
build-%:
6464
mkdir -p bin
6565
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$* ./cmd/$*
66+
CGO_ENABLED=0 GOOS=windows go build -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$* ./cmd/$*
6667

6768
container-%: build-%
6869
docker build -t $*:latest -f $(shell if [ -e ./cmd/$*/Dockerfile ]; then echo ./cmd/$*/Dockerfile; else echo Dockerfile; fi) --label revision=$(REV) .

0 commit comments

Comments
 (0)