2025-10-03 07:48:55 +02:00
|
|
|
# Makefile for Codex Go Bindings
|
|
|
|
|
|
|
|
|
|
NIM_CODEX_DIR := vendor/nim-codex
|
|
|
|
|
|
|
|
|
|
.PHONY: all clean update build-libcodex build
|
|
|
|
|
|
|
|
|
|
all: build
|
|
|
|
|
|
|
|
|
|
update:
|
|
|
|
|
@echo "Fetching submodules..."
|
|
|
|
|
@git submodule update --init --recursive
|
|
|
|
|
@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..."
|
2025-10-06 08:57:59 +02:00
|
|
|
go build -o codex-go examples/golang/codex.go
|
2025-10-03 07:48:55 +02:00
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
@echo "Cleaning up..."
|
|
|
|
|
@git submodule deinit -f $(NIM_CODEX_DIR)
|
2025-10-06 08:57:59 +02:00
|
|
|
@rm -f codex-go
|