From db37da547e5487b490ec4c5e59b34e8e29705dcf Mon Sep 17 00:00:00 2001 From: Will Rouesnel Date: Fri, 9 Sep 2016 01:14:28 +1000 Subject: [PATCH] Make the makefile less Linux specific (find on OSX complains apparently). --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7df11a92..a55e4349 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -GO_SRC := $(shell find -type f -name "*.go") +GO_SRC := $(shell find . -type f -name "*.go") CONTAINER_NAME ?= wrouesnel/postgres_exporter:latest @@ -7,7 +7,7 @@ all: vet test postgres_exporter # Simple go build postgres_exporter: $(GO_SRC) - CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-extldflags '-static' -X main.Version=git:$(shell git rev-parse HEAD)" -o postgres_exporter . + CGO_ENABLED=0 go build -a -ldflags "-extldflags '-static' -X main.Version=git:$(shell git rev-parse HEAD)" -o postgres_exporter . # Take a go build and turn it into a minimal container docker: postgres_exporter