From 6488ba1cf5e077f1f70289355cd212858b6a3274 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Wed, 7 Feb 2024 11:43:41 +0100 Subject: [PATCH] make: Fix "BINDIR" getting always created. --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index be35f0f..6e17cd5 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ GOFMT := "$(GODIR)/gofmt" GOOS ?= linux GOARCH ?= amd64 GOVERSION := $(shell "$(GO)" env GOVERSION | sed "s|go||" ) -BINDIR := "$(CURDIR)/bin" +BINDIR := $(CURDIR)/bin VENDORDIR := "$(CURDIR)/vendor" VERSION := $(shell "$(CURDIR)/scripts/get-version.sh") TARVERSION := $(shell "$(CURDIR)/scripts/get-version.sh" --tar) @@ -126,16 +126,16 @@ coverhtml: vet common common: $(EASYJSON_GO_FILES) $(PROTO_GO_FILES) $(BINDIR): - mkdir -p $(BINDIR) + mkdir -p "$(BINDIR)" client: common $(BINDIR) - $(GO) build $(BUILDARGS) -ldflags '$(INTERNALLDFLAGS)' -o $(BINDIR)/client ./client/... + $(GO) build $(BUILDARGS) -ldflags '$(INTERNALLDFLAGS)' -o "$(BINDIR)/client" ./client/... server: common $(BINDIR) - $(GO) build $(BUILDARGS) -ldflags '$(INTERNALLDFLAGS)' -o $(BINDIR)/signaling ./server/... + $(GO) build $(BUILDARGS) -ldflags '$(INTERNALLDFLAGS)' -o "$(BINDIR)/signaling" ./server/... proxy: common $(BINDIR) - $(GO) build $(BUILDARGS) -ldflags '$(INTERNALLDFLAGS)' -o $(BINDIR)/proxy ./proxy/... + $(GO) build $(BUILDARGS) -ldflags '$(INTERNALLDFLAGS)' -o "$(BINDIR)/proxy" ./proxy/... clean: rm -f $(EASYJSON_GO_FILES)