From d9c6d77295f9d7710cd96d11a7cadd264a4d4ea2 Mon Sep 17 00:00:00 2001 From: fryorcraken Date: Fri, 12 Jul 2024 15:28:08 +1000 Subject: [PATCH] chore: add run-wakunode2 task to makefile To easily build and run wakunode2 from makefile. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7a6cb3af6..514fc9785 100644 --- a/Makefile +++ b/Makefile @@ -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 \ No newline at end of file + rm libnegentropy.so