mirror of
https://github.com/logos-storage/logos-storage-go-bindings.git
synced 2026-01-02 13:33:10 +00:00
28 lines
550 B
Makefile
28 lines
550 B
Makefile
# Makefile for Codex Go Bindings
|
|
|
|
NIM_CODEX_DIR := vendor/nim-codex
|
|
|
|
.PHONY: all clean update build-libcodex build
|
|
|
|
all: build
|
|
|
|
submodules:
|
|
@echo "Fetching submodules..."
|
|
@git submodule update --init --recursive
|
|
|
|
update: | submodules
|
|
@echo "Updating nim-codex..."
|
|
@$(MAKE) -C $(NIM_CODEX_DIR) update
|
|
|
|
libcodex:
|
|
@echo "Building libcodex..."
|
|
@$(MAKE) -C $(NIM_CODEX_DIR) libcodex
|
|
|
|
build:
|
|
@echo "Building Codex Go Bindings..."
|
|
go build -o codex-go codex
|
|
|
|
clean:
|
|
@echo "Cleaning up..."
|
|
@git submodule deinit -f $(NIM_CODEX_DIR)
|
|
@rm -f codex-go
|