Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build for multiple OS distributions
Browse files Browse the repository at this point in the history
jnormington committed May 22, 2022
1 parent 666ca1d commit 9b6a70f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -7,7 +7,13 @@ LDFLAGS="-X bullhorn-to-dataset/cmd.version=$(VERSION)"

build:
@mkdir -p ${BUILD_DIR}
@go build -o ${BUILD_PREFIX} -ldflags=${LDFLAGS}
@GOOS=darwin GOARCH=amd64 go build -o ${BUILD_PREFIX}-darwin-amd64 -ldflags=${LDFLAGS}
@GOOS=darwin GOARCH=arm64 go build -o ${BUILD_PREFIX}-darwin-arm64 -ldflags=${LDFLAGS}
@GOOS=linux GOARCH=amd64 go build -o ${BUILD_PREFIX}-linux-amd64 -ldflags=${LDFLAGS}
@GOOS=linux GOARCH=386 go build -o ${BUILD_PREFIX}-linux-386 -ldflags=${LDFLAGS}
@GOOS=linux GOARCH=amd64 go build -o ${BUILD_PREFIX}-linux-amd64 -ldflags=${LDFLAGS}
@GOOS=windows GOARCH=amd64 go build -o ${BUILD_PREFIX}-windows-amd64 -ldflags=${LDFLAGS}
@GOOS=windows GOARCH=386 go build -o ${BUILD_PREFIX}-windows-386 -ldflags=${LDFLAGS}

test:
@go test ./... -coverprofile coverage.out

0 comments on commit 9b6a70f

Please sign in to comment.