From b33e5b5431e32c1ff60bd064c0f05cc4e13f7fe4 Mon Sep 17 00:00:00 2001 From: Vaclav Pavlin Date: Tue, 11 Mar 2025 10:57:48 +0100 Subject: [PATCH] avoid using sudo for make (#48) --- README.md | 9 +++++++-- waku/Makefile | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b4add8f..d4adc8b 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,14 @@ Follow these steps to install and set up the module: ``` cd $(go list -m -f '{{.Dir}}' github.com/waku-org/waku-go-bindings) ``` -4. Build the dependencies: +4. Prepare third_party directory and clone nwaku ``` - sudo make -C waku + sudo mkdir third_party + sudo chown $USER third_party + ``` +5. Build the dependencies: + ``` + make -C waku ``` Now the module is ready for use in your project. diff --git a/waku/Makefile b/waku/Makefile index 2472bb5..b3b3ebc 100644 --- a/waku/Makefile +++ b/waku/Makefile @@ -14,7 +14,7 @@ all: build prepare: @echo "Creating third_party directory..." @mkdir -p $(THIRD_PARTY_DIR) - + @echo "Cloning nwaku repository..." @if [ ! -d "$(NWAKU_DIR)" ]; then \ cd $(THIRD_PARTY_DIR) && \