Files
anyllm-proxy/Makefile
T
whit3rabbitandClaude Sonnet 4.6 e94b4e2acf feat: add Homebrew tap release job and ignore tool/config dirs
Add brew-release CI job that builds versioned macOS tarballs, uploads
them to the GitHub Release, and updates the homebrew-tap cask formula.
Ignore .mcp.json, .repowise/, and .superpowers/ in .gitignore. Add
Makefile.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-09 03:25:40 -05:00

33 lines
976 B
Makefile

VERSION := $(shell grep '^version' Cargo.toml | head -1 | sed 's/version = "\(.*\)"/\1/')
ARCH := $(shell uname -m)
.PHONY: help build release deb package clean
help:
@printf "%-12s %s\n" build "debug build"
@printf "%-12s %s\n" release "release build (current platform)"
@printf "%-12s %s\n" deb "build .deb package (Linux only, requires cargo-deb)"
@printf "%-12s %s\n" package "create macOS tarball for Homebrew (macOS only)"
@printf "%-12s %s\n" clean "remove build and dist artifacts"
@printf "\nversion: $(VERSION)\n"
build:
cargo build -p anyllm_proxy
release:
cargo build --release -p anyllm_proxy
deb: release
cargo deb -p anyllm_proxy --no-build --no-strip
package: release
@mkdir -p dist
@cp target/release/anyllm_proxy dist/anyllm-proxy
@tar -czf dist/anyllm-proxy-$(VERSION)-macos-$(ARCH).tar.gz -C dist anyllm-proxy
@rm dist/anyllm-proxy
@echo "dist/anyllm-proxy-$(VERSION)-macos-$(ARCH).tar.gz"
clean:
cargo clean
rm -rf dist/