Archived
c24197516f
Forge Release / build-and-release (push) Failing after 3s
- forge.el: add import statements for schema/probe/compiler/install - All files: arg(n)/arg_count() → get(args(),n)/len(args()) - compiler.el: llm_call_system (utility cap violation) → http_post_with_headers - install.el: http_post_auth_json → http_post_json (_auth already in body) - Makefile: local dev build using installed El SDK - .gitea/workflows/forge-release.yaml: CI build on push + el-sdk-updated dispatch - dist/forge: builds and runs
24 lines
452 B
Makefile
24 lines
452 B
Makefile
EL_LIB ?= /usr/local/lib/el
|
|
ELC ?= elc
|
|
CC ?= cc
|
|
CFLAGS := -std=c11 -O2 -I$(EL_LIB)
|
|
|
|
.PHONY: build clean install
|
|
|
|
dist/:
|
|
mkdir -p dist
|
|
|
|
dist/forge.c: src/forge.el | dist/
|
|
$(ELC) src/forge.el > dist/forge.c
|
|
|
|
dist/forge: dist/forge.c
|
|
$(CC) $(CFLAGS) -o dist/forge dist/forge.c $(EL_LIB)/el_runtime.c -lcurl -lpthread
|
|
|
|
build: dist/forge
|
|
|
|
install: dist/forge
|
|
install -m 755 dist/forge /usr/local/bin/forge
|
|
|
|
clean:
|
|
rm -rf dist/forge dist/forge.c
|