chore: makefile

This commit is contained in:
Igor Sirotin 2025-09-29 11:16:37 +01:00
parent 58940a5eb2
commit e5d92ec09b
No known key found for this signature in database
GPG Key ID: 0EABBCB40CB9AD4A

View File

@ -12,18 +12,10 @@ all: build
# Prepare third_party directory and clone nwaku # Prepare third_party directory and clone nwaku
prepare: prepare:
@echo "Creating third_party directory..." @echo "Fetching nwaku..."
@mkdir -p $(THIRD_PARTY_DIR) @mkdir -p $(THIRD_PARTY_DIR)
cd .. && git submodule update --init --recursive
@echo "Cloning nwaku repository..." cd $(NWAKU_DIR) && make update
@if [ ! -d "$(NWAKU_DIR)" ]; then \
cd $(THIRD_PARTY_DIR) && \
git clone $(NWAKU_REPO) && \
cd $(NWAKU_DIR) && \
make update; \
else \
echo "nwaku repository already exists."; \
fi
# Build libwaku # Build libwaku
build-libwaku: prepare build-libwaku: prepare