Skip to content

Commit 6fb3203

Browse files
authored
Merge pull request #774 from ffranr/add-itest-make-commands
Modify itest make commands
2 parents 2faee07 + af495cb commit 6fb3203

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,13 @@ unit-race:
178178
mkdir -p app/build && touch app/build/index.html
179179
env CGO_ENABLED=1 GORACE="history_size=7 halt_on_errors=1" $(UNIT_RACE) -tags="$(LND_RELEASE_TAGS)"
180180

181+
clean-itest:
182+
@$(call print, "Cleaning itest binaries.")
183+
rm -rf itest/litd-itest itest/btcd-itest itest/lnd-itest
184+
181185
build-itest: app-build
182-
@$(call print, "Building itest btcd and litd.")
186+
@$(call print, "Building itest binaries.")
187+
CGO_ENABLED=0 $(GOBUILD) -tags="$(ITEST_TAGS)" -o itest/litd-itest -ldflags "$(ITEST_LDFLAGS)" $(PKG)/cmd/litd
183188
CGO_ENABLED=0 $(GOBUILD) -tags="$(ITEST_TAGS)" -o itest/btcd-itest -ldflags "$(ITEST_LDFLAGS)" $(BTCD_PKG)
184189
CGO_ENABLED=0 $(GOBUILD) -tags="$(ITEST_TAGS)" -o itest/lnd-itest -ldflags "$(ITEST_LDFLAGS)" $(LND_PKG)/cmd/lnd
185190

@@ -246,7 +251,7 @@ rpc-js-compile:
246251
@$(call print, "Compiling JSON/WASM stubs.")
247252
GOOS=js GOARCH=wasm $(GOBUILD) $(PKG)/litrpc
248253

249-
clean:
254+
clean: clean-itest
250255
@$(call print, "Cleaning source.$(NC)")
251256
$(RM) ./litcli-debug
252257
$(RM) ./litd-debug

0 commit comments

Comments
 (0)