mirror of
https://github.com/logos-messaging/sds-go-bindings.git
synced 2026-01-02 14:13:08 +00:00
adjust Makefile to make sure nim is always compiled
This commit is contained in:
parent
911541c82b
commit
d80dc61ae1
20
sds/Makefile
20
sds/Makefile
@ -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..."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user