mirror of
https://github.com/logos-messaging/logos-messaging-go-bindings.git
synced 2026-01-02 14:03:10 +00:00
38 lines
824 B
Makefile
38 lines
824 B
Makefile
# Makefile for Waku Go Bindings
|
|
|
|
# Directories
|
|
THIRD_PARTY_DIR := third_party
|
|
NWAKU_REPO := https://github.com/waku-org/nwaku
|
|
NWAKU_DIR := $(THIRD_PARTY_DIR)/nwaku
|
|
|
|
.PHONY: all clean prepare build
|
|
|
|
# Default target
|
|
all: build
|
|
|
|
# Prepare third_party directory and clone nwaku
|
|
prepare:
|
|
@echo "Creating third_party directory..."
|
|
@mkdir -p $(THIRD_PARTY_DIR)
|
|
|
|
@echo "Cloning nwaku repository..."
|
|
@if [ ! -d "$(NWAKU_DIR)" ]; then \
|
|
cd $(THIRD_PARTY_DIR) && \
|
|
git clone $(NWAKU_REPO); \
|
|
else \
|
|
echo "nwaku repository already exists."; \
|
|
fi
|
|
|
|
@echo "Building libwaku..."
|
|
@cd $(NWAKU_DIR) && make libwaku
|
|
|
|
# Build Waku Go Bindings
|
|
build: prepare
|
|
@echo "Building Waku Go Bindings..."
|
|
go build ./waku/...
|
|
|
|
# Clean up generated files
|
|
clean:
|
|
@echo "Cleaning up..."
|
|
@rm -rf $(THIRD_PARTY_DIR)
|
|
@rm -f waku-go-bindings
|