Skip to content

Commit

Permalink
Fix executable builds
Browse files Browse the repository at this point in the history
Signed-off-by: Jason T. Greene <[email protected]>
  • Loading branch information
n1hility committed Nov 7, 2023
1 parent 9651e31 commit 7cd9a77
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,27 @@ export GOOS=windows
export GOARCH=amd64
SRC = $(shell find . -type f -name '*.go')

.PHONY: default
default: build

GOLANGCI_LINT_VERSION := 1.54.2
.PHONY: .install.golangci-lint
.install.golangci-lint:
bin/golangci-lint:
VERSION=$(GOLANGCI_LINT_VERSION) ./hack/install_golangci.sh

.PHONY: .install.golangci-lint
.install.golangci-lint: bin bin/golangci-lint

.PHONY: validate
validate:
validate: bin/golangci-lint
./bin/golangci-lint run

.PHONY: default
default: build

.PHONY: build
build: bin bin/kvpctl.exe bin/dumpvms.exe bin/wmigen bin/createvm.exe bin/dumpsummary.exe bin/updatevm.exe
build: validate bin bin/kvpctl.exe bin/dumpvms.exe bin/createvm.exe bin/updatevm.exe

bin:
mkdir -p bin


bin/kvpctl.exe: $(SRC) go.mod go.sum
go build -o bin ./cmd/kvpctl

Expand All @@ -32,13 +35,5 @@ bin/createvm.exe: $(SRC) go.mod go.sum
bin/updatevm.exe: $(SRC) go.mod go.sum
go build -o bin ./cmd/updatevm

bin/dumpsummary.exe: $(SRC) go.mod go.sum
go build -o bin ./cmd/dumpsummary

bin/wmigen: export GOOS=
bin/wmigen: export GOARCH=
bin/wmigen: $(SRC) go.mod go.sum
go build -o bin ./cmd/wmigen

clean:
rm -rf bin

0 comments on commit 7cd9a77

Please sign in to comment.