Skip to content

Commit 9143f59

Browse files
authored
Merge pull request prometheus-community#25 from wrouesnel/tweak-makefile-for-osx
Make the makefile less Linux specific
2 parents 286550f + db37da5 commit 9143f59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11

2-
GO_SRC := $(shell find -type f -name "*.go")
2+
GO_SRC := $(shell find . -type f -name "*.go")
33

44
CONTAINER_NAME ?= wrouesnel/postgres_exporter:latest
55

66
all: vet test postgres_exporter
77

88
# Simple go build
99
postgres_exporter: $(GO_SRC)
10-
CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-extldflags '-static' -X main.Version=git:$(shell git rev-parse HEAD)" -o postgres_exporter .
10+
CGO_ENABLED=0 go build -a -ldflags "-extldflags '-static' -X main.Version=git:$(shell git rev-parse HEAD)" -o postgres_exporter .
1111

1212
# Take a go build and turn it into a minimal container
1313
docker: postgres_exporter

0 commit comments

Comments
 (0)