Skip to content

Commit

Permalink
use simply-binded variables in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Mar 20, 2019
1 parent db4e789 commit 8366bf8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
MACKEREL_AGENT_NAME ?= "mackerel-agent"
MACKEREL_API_BASE ?= "https://api.mackerelio.com"
VERSION = 0.59.1
CURRENT_REVISION = $(shell git rev-parse --short HEAD)
ARGS = "-conf=mackerel-agent.conf"
BUILD_OS_TARGETS = "linux darwin freebsd windows netbsd"
VERSION := 0.59.1
CURRENT_REVISION := $(shell git rev-parse --short HEAD)
ARGS := "-conf=mackerel-agent.conf"
BUILD_OS_TARGETS := "linux darwin freebsd windows netbsd"

BUILD_LDFLAGS = "\
BUILD_LDFLAGS := "\
-X main.version=$(VERSION) \
-X main.gitcommit=$(CURRENT_REVISION) \
-X github.com/mackerelio/mackerel-agent/config.agentName=$(MACKEREL_AGENT_NAME) \
Expand Down

0 comments on commit 8366bf8

Please sign in to comment.