From ec335c0777a06218eeb7f4206ab784e7a267fd30 Mon Sep 17 00:00:00 2001 From: Solly Ross Date: Thu, 12 Jul 2018 15:05:43 -0400 Subject: [PATCH] Fix cross-compile typo in Makefile The makefile target for the output directory was hardcoded to $(ARCH), independent of the actual target input in the makefile. This fixes that. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 019387aa..c59c4924 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ all: $(OUT_DIR)/$(ARCH)/adapter src_deps=$(shell find pkg cmd -type f -name "*.go") $(OUT_DIR)/%/adapter: vendor $(src_deps) - CGO_ENABLED=0 GOARCH=$* go build -tags netgo -o $(OUT_DIR)/$(ARCH)/adapter github.com/directxman12/k8s-prometheus-adapter/cmd/adapter + CGO_ENABLED=0 GOARCH=$* go build -tags netgo -o $(OUT_DIR)/$*/adapter github.com/directxman12/k8s-prometheus-adapter/cmd/adapter docker-build: vendor cp deploy/Dockerfile $(TEMP_DIR)