Makefile: add tags env argument to build and install
This commit is contained in:
parent
89113654fe
commit
9aaf046481
8
Makefile
8
Makefile
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user