Makefile: build debug binaries with build directive

This commit is contained in:
Conner Fromknecht 2018-04-29 04:49:14 -07:00
parent 137ec37450
commit ffd240e0ee
No known key found for this signature in database
GPG Key ID: 39DE78FBE6ACB0EF

View File

@ -124,9 +124,9 @@ btcd: $(GLIDE_BIN) $(BTCD_DIR)
# ============
build:
@$(call print, "Building lnd and lncli.")
$(GOBUILD) -o lnd $(LDFLAGS) $(PKG)
$(GOBUILD) -o lncli $(LDFLAGS) $(PKG)/cmd/lncli
@$(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
install:
@$(call print, "Installing lnd and lncli.")