Setup build tools

This commit is contained in:
Arnaud 2025-10-03 07:48:55 +02:00
parent 23590100ff
commit 4c421675dc
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F

26
Makefile Normal file
View File

@ -0,0 +1,26 @@
# 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..."
go build ./...
clean:
@echo "Cleaning up..."
@git submodule deinit -f $(NIM_CODEX_DIR)
@rm -f codex-go-bindings