adjust Makefile to make sure nim is always compiled

This commit is contained in:
Ivan Folgueira Bande 2025-10-23 01:15:54 +02:00
parent 911541c82b
commit d80dc61ae1
No known key found for this signature in database
GPG Key ID: 3C117481F89E24A7

View File

@ -11,20 +11,24 @@ all: build
# Prepare third_party directory and clone nim-sds # Prepare third_party directory and clone nim-sds
prepare: prepare:
@echo "Creating third_party directory..." @echo "Preparing third_party directory..."
@mkdir -p ../third_party @mkdir -p ../third_party
@if [ ! -d "../third_party/nim-sds" ]; then \ @echo "Setting up nim-sds..."
echo "Cloning nim-sds repository..." ; \ @if [ ! -d "../third_party/nim-sds/.git" ]; then \
cd ../third_party/ && \ echo "Cloning nim-sds repository..."; \
git clone https://github.com/waku-org/nim-sds && \ git clone https://github.com/waku-org/nim-sds ../third_party/nim-sds; \
cd nim-sds && \
git checkout master; \
make update; \
else \ else \
echo "nim-sds repository already exists."; \ echo "nim-sds repository already exists."; \
fi fi
@echo "Updating nim-sds to get vendors and compile nim in nimbus-build-system..."
@cd ../third_party/nim-sds && \
git fetch origin && \
git checkout master && \
echo "Running 'make update'..." && \
make update
# Build SDS Go Bindings # Build SDS Go Bindings
build: prepare build: prepare
@echo "Building libsds..." @echo "Building libsds..."