We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 286550f + db37da5 commit 9143f59Copy full SHA for 9143f59
Makefile
@@ -1,13 +1,13 @@
1
2
-GO_SRC := $(shell find -type f -name "*.go")
+GO_SRC := $(shell find . -type f -name "*.go")
3
4
CONTAINER_NAME ?= wrouesnel/postgres_exporter:latest
5
6
all: vet test postgres_exporter
7
8
# Simple go build
9
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 .
+ CGO_ENABLED=0 go build -a -ldflags "-extldflags '-static' -X main.Version=git:$(shell git rev-parse HEAD)" -o postgres_exporter .
11
12
# Take a go build and turn it into a minimal container
13
docker: postgres_exporter
0 commit comments