Files
Sprachmittler/Makefile
T
schihei 7ca5c710ec feat(m0): complete scaffold, logging and signature checks (T0.2-T0.6)
Add os.Logger categories, OSSignposter wrapper and shortHash helper; enforce exact Debug/Release/install signatures; lint tests; update M0 docs and progress.
2026-11-26 12:33:51 +01:00

67 lines
1.7 KiB
Makefile

# Sprachmittler — developer entry points. See AGENTS.md.
PKG := Packages/SprachmittlerKit
PROJECT := Sprachmittler.xcodeproj
SCHEME := Sprachmittler
DERIVED := .build/xcode
APP_PATH := $(DERIVED)/Build/Products/Debug/Sprachmittler.app
INSTALL_DIR ?= /Applications
.PHONY: bootstrap doctor generate build build-pkg build-app test live-test verify app install fixtures smoke privacy-check format manifest clean
bootstrap:
@scripts/bootstrap.sh
doctor:
@scripts/opencode-check.sh
generate:
xcodegen generate --spec project.yml
build: build-pkg build-app
build-pkg:
swift build --package-path $(PKG)
build-app: generate
xcodebuild -project $(PROJECT) -scheme $(SCHEME) -configuration Debug \
-derivedDataPath $(DERIVED) -destination 'platform=macOS,arch=arm64' -quiet build
test:
swift test --package-path $(PKG) --skip SprachmittlerLiveTests
live-test:
SPRACHMITTLER_LIVE=1 swift test --package-path $(PKG) --filter SprachmittlerLiveTests
verify:
@scripts/verify.sh
app: build-app
@pkill -x Sprachmittler 2>/dev/null || true
open "$(APP_PATH)"
install: build-app
@pkill -x Sprachmittler 2>/dev/null || true
ditto "$(APP_PATH)" "$(INSTALL_DIR)/Sprachmittler.app"
codesign --force --sign - --options runtime \
--entitlements App/Sprachmittler.entitlements "$(INSTALL_DIR)/Sprachmittler.app"
scripts/check-signature.sh "$(INSTALL_DIR)/Sprachmittler.app" install
open "$(INSTALL_DIR)/Sprachmittler.app"
fixtures:
@scripts/capture-fixtures.sh
smoke:
@scripts/smoke-ollama.sh
privacy-check:
@scripts/privacy-check.sh
format:
@command -v swiftformat >/dev/null && swiftformat App $(PKG) || echo "swiftformat not installed (make bootstrap)"
manifest:
@scripts/manifest.sh
clean:
rm -rf .build $(PKG)/.build $(PROJECT)