mirror of
https://github.com/logos-storage/logos-storage-go-bindings.git
synced 2026-01-03 22:13:06 +00:00
Add submodule
This commit is contained in:
parent
b165d59b6e
commit
23590100ff
@ -1,42 +0,0 @@
|
||||
# Makefile for Codex Go Bindings
|
||||
|
||||
# Directories
|
||||
THIRD_PARTY_DIR := ../third_party
|
||||
NIM_CODEX_REPO := https://github.com/codex-storage/nim-codex
|
||||
NIM_CODEX_DIR := $(THIRD_PARTY_DIR)/nim-codex
|
||||
|
||||
.PHONY: all clean prepare build-libcodex build
|
||||
|
||||
# Default target
|
||||
all: build
|
||||
|
||||
# Prepare third_party directory and clone nim-codex
|
||||
prepare:
|
||||
@echo "Creating third_party directory..."
|
||||
@mkdir -p $(THIRD_PARTY_DIR)
|
||||
|
||||
@echo "Cloning nim-codex repository..."
|
||||
@if [ ! -d "$(NIM_CODEX_DIR)" ]; then \
|
||||
cd $(THIRD_PARTY_DIR) && \
|
||||
git clone $(NIM_CODEX_REPO) && \
|
||||
cd $(NIM_CODEX_DIR) && \
|
||||
make update; \
|
||||
else \
|
||||
echo "nim-codex repository already exists."; \
|
||||
fi
|
||||
|
||||
# Build libcodex
|
||||
build-libcodex: prepare
|
||||
@echo "Building libcodex..."
|
||||
@cd $(NIM_CODEX_DIR) && make libcodex
|
||||
|
||||
# Build Codex Go Bindings
|
||||
build: build-libcodex
|
||||
@echo "Building Codex Go Bindings..."
|
||||
go build ./...
|
||||
|
||||
# Clean up generated files
|
||||
clean:
|
||||
@echo "Cleaning up..."
|
||||
@rm -rf $(THIRD_PARTY_DIR)
|
||||
@rm -f codex-go-bindings
|
||||
2
vendor/nim-codex
vendored
2
vendor/nim-codex
vendored
@ -1 +1 @@
|
||||
Subproject commit e3d8d195c37709e49a8f9903cf5d0662eeae5dba
|
||||
Subproject commit 40cc0195dc99eecd4ea3a4396bb9f1dbd107fd86
|
||||
Loading…
x
Reference in New Issue
Block a user