chore: add run-wakunode2 task to makefile

To easily build and run wakunode2 from makefile.
This commit is contained in:
fryorcraken 2024-07-12 15:28:08 +10:00 committed by fryorcraken
parent 927f96805c
commit d9c6d77295

View File

@ -179,7 +179,7 @@ testcommon: | build deps
##########
## Waku ##
##########
.PHONY: testwaku wakunode2 testwakunode2 example2 chat2 chat2bridge liteprotocoltester
.PHONY: testwaku wakunode2 run-wakunode2 testwakunode2 example2 chat2 chat2bridge liteprotocoltester
# install anvil only for the testwaku target
testwaku: | build deps anvil librln
@ -190,6 +190,9 @@ wakunode2: | build deps librln
echo -e $(BUILD_MSG) "build/$@" && \
$(ENV_SCRIPT) nim wakunode2 $(NIM_PARAMS) waku.nims
run-wakunode2: | wakunode2
./build/wakunode2 $(ARGS)
benchmarks: | build deps librln
echo -e $(BUILD_MSG) "build/$@" && \
$(ENV_SCRIPT) nim benchmarks $(NIM_PARAMS) waku.nims
@ -429,4 +432,4 @@ negentropy:
cp vendor/negentropy/cpp/libnegentropy.so ./
negentropy-clean:
$(MAKE) -C vendor/negentropy/cpp clean && \
rm libnegentropy.so
rm libnegentropy.so