From 9aaf046481c0aca3c5f7a6563e99582d2ba07656 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Fri, 31 Aug 2018 19:32:22 -0700 Subject: [PATCH] Makefile: add tags env argument to build and install --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 054249d9..c4ee66aa 100644 --- a/Makefile +++ b/Makefile @@ -130,13 +130,13 @@ btcd: $(GLIDE_BIN) $(BTCD_DIR) build: @$(call print, "Building debug lnd and lncli.") - $(GOBUILD) -tags=$(TEST_TAGS) -o lnd-debug $(LDFLAGS) $(PKG) - $(GOBUILD) -tags=$(TEST_TAGS) -o lncli-debug $(LDFLAGS) $(PKG)/cmd/lncli + $(GOBUILD) -tags="$(TEST_TAGS) ${tags}" -o lnd-debug $(LDFLAGS) $(PKG) + $(GOBUILD) -tags="$(TEST_TAGS) ${tags}" -o lncli-debug $(LDFLAGS) $(PKG)/cmd/lncli install: @$(call print, "Installing lnd and lncli.") - go install -v $(LDFLAGS) $(PKG) - go install -v $(LDFLAGS) $(PKG)/cmd/lncli + go install -v -tags="${tags}" $(LDFLAGS) $(PKG) + go install -v -tags="${tags}" $(LDFLAGS) $(PKG)/cmd/lncli scratch: dep build