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.
This commit is contained in:
Solly Ross 2018-07-12 15:05:43 -04:00
parent 0d220eafef
commit ec335c0777

View file

@ -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)