Skip to content

Commit

Permalink
Merge pull request #282 from Shopify/fix-makefile
Browse files Browse the repository at this point in the history
Fixed make file
  • Loading branch information
shuhaowu authored May 4, 2021
2 parents eea04de + 06d11af commit f6b7173
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Variables to be built into the binary
VERSION := 1.1.0
DATETIME ?= $(shell date -u +%Y%m%d%H%M%S) # This variable can be overwritten by the caller

# This variable can be overwritten by the caller
DATETIME ?= $(shell date -u +%Y%m%d%H%M%S)

ifndef IGNORE_DIRTY_TREE
DIRTY_TREE := $(shell git diff-index --quiet HEAD -- || echo '+dirty')
Expand Down Expand Up @@ -38,7 +40,7 @@ GOTESTSUM_URL := "https://github.com/gotestyourself/gotestsum/releases/downloa

$(PROJECTS): $(GOBIN)
$(eval proj := $@)
go build -i -ldflags "$(LDFLAGS)" -o $(BIN_TARGET) $(PROJECT_PKG)
go build -ldflags "$(LDFLAGS)" -o $(BIN_TARGET) $(PROJECT_PKG)

$(PROJECT_DEBS): LDFLAGS += -X github.com/Shopify/ghostferry.WebUiBasedir=/$(SHARE_DIR)
$(PROJECT_DEBS): reset-deb-dir
Expand Down

0 comments on commit f6b7173

Please sign in to comment.