Skip to content

Commit

Permalink
Merge pull request #63 from n1hility/fix-build
Browse files Browse the repository at this point in the history
Fix executable builds
  • Loading branch information
openshift-merge-bot[bot] authored Nov 15, 2023
2 parents 5b0ce87 + 7cd9a77 commit 8104443
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 8104443

Please sign in to comment.