add a file name extension to the generated binary when the host (e.g. windows) requires it (#47)

This commit is contained in:
Rui Lopes
2020-09-03 20:02:48 +01:00
committed by GitHub
parent b4b8471a28
commit ac9bc318b1
+1 -1
View File
@@ -1,7 +1,7 @@
GOPATH := $(shell go env GOPATH)
BIN_DIR ?= $(shell pwd)/bin
BIN_NAME ?= ssl_exporter
BIN_NAME ?= ssl_exporter$(shell go env GOEXE)
DOCKER_IMAGE_NAME ?= ssl-exporter
DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD))