Makefile: add tags env argument to build and install

This commit is contained in:
Conner Fromknecht 2018-08-31 19:32:22 -07:00
parent 89113654fe
commit 9aaf046481
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

@ -130,13 +130,13 @@ btcd: $(GLIDE_BIN) $(BTCD_DIR)
build: build:
@$(call print, "Building debug lnd and lncli.") @$(call print, "Building debug lnd and lncli.")
$(GOBUILD) -tags=$(TEST_TAGS) -o lnd-debug $(LDFLAGS) $(PKG) $(GOBUILD) -tags="$(TEST_TAGS) ${tags}" -o lnd-debug $(LDFLAGS) $(PKG)
$(GOBUILD) -tags=$(TEST_TAGS) -o lncli-debug $(LDFLAGS) $(PKG)/cmd/lncli $(GOBUILD) -tags="$(TEST_TAGS) ${tags}" -o lncli-debug $(LDFLAGS) $(PKG)/cmd/lncli
install: install:
@$(call print, "Installing lnd and lncli.") @$(call print, "Installing lnd and lncli.")
go install -v $(LDFLAGS) $(PKG) go install -v -tags="${tags}" $(LDFLAGS) $(PKG)
go install -v $(LDFLAGS) $(PKG)/cmd/lncli go install -v -tags="${tags}" $(LDFLAGS) $(PKG)/cmd/lncli
scratch: dep build scratch: dep build