mirror of
https://github.com/luxfi/aml.git
synced 2026-09-24 00:25:20 +00:00
9-table SQLite migration (transactions, entities, rules, alerts, cases, case_events, sanctions_lists, sanctions_entries, webhooks). Multi-stage Dockerfile producing single amld binary. compose.yml with mounted data volume. Makefile with build/test/run/clean targets.
18 lines
324 B
Makefile
18 lines
324 B
Makefile
.PHONY: build test run clean
|
|
|
|
VERSION := $(shell git describe --tags --always 2>/dev/null || echo dev)
|
|
LDFLAGS := -ldflags="-s -w -X main.version=$(VERSION)"
|
|
|
|
build:
|
|
CGO_ENABLED=1 go build $(LDFLAGS) -o amld ./cmd/amld/
|
|
|
|
test:
|
|
go test -race -count=1 ./...
|
|
|
|
run: build
|
|
./amld serve --dev
|
|
|
|
clean:
|
|
rm -f amld
|
|
rm -rf data/
|