mirror of
https://github.com/logos-messaging/sds-go-bindings.git
synced 2026-01-02 06:03:12 +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:
|
||||
@echo "Creating third_party directory..."
|
||||
@echo "Preparing third_party directory..."
|
||||
@mkdir -p ../third_party
|
||||
|
||||
@if [ ! -d "../third_party/nim-sds" ]; then \
|
||||
echo "Cloning nim-sds repository..." ; \
|
||||
cd ../third_party/ && \
|
||||
git clone https://github.com/waku-org/nim-sds && \
|
||||
cd nim-sds && \
|
||||
git checkout master; \
|
||||
make update; \
|
||||
@echo "Setting up nim-sds..."
|
||||
@if [ ! -d "../third_party/nim-sds/.git" ]; then \
|
||||
echo "Cloning nim-sds repository..."; \
|
||||
git clone https://github.com/waku-org/nim-sds ../third_party/nim-sds; \
|
||||
else \
|
||||
echo "nim-sds repository already exists."; \
|
||||
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: prepare
|
||||
@echo "Building libsds..."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user