Files
kindexr/archive/go/Makefile
T
enki 57cda1281b rewrite phases 0+1 in Rust; archive Go implementation
Move entire Go tree to archive/go/ preserving history. Add Rust
implementation: axum HTTP server, nostr-sdk relay reader, sqlx/SQLite
storage, Torznab caps+search endpoints, figment config, clap CLI.
Update spec.md tech stack and repo layout to reflect Rust. Add
docs/FIPS.md with Mode A/B/C deployment walkthrough. Add Phase 6
(FIPS deployment) to phase plan.
2026-05-17 02:23:26 -07:00

37 lines
842 B
Makefile

.PHONY: build test clean install run lint fmt vet check
BINARY := kindexr
CLI := kindexr-cli
VERSION := $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
LDFLAGS := -ldflags "-X main.version=$(VERSION) -s -w"
build:
go build $(LDFLAGS) -o ./bin/$(BINARY) ./cmd/kindexr
go build $(LDFLAGS) -o ./bin/$(CLI) ./cmd/kindexr-cli
test:
go test -race ./...
lint:
golangci-lint run
fmt:
gofmt -w .
vet:
go vet ./...
check: fmt vet test
install: build
install -D -m 0755 ./bin/$(BINARY) /usr/local/bin/$(BINARY)
install -D -m 0755 ./bin/$(CLI) /usr/local/bin/$(CLI)
install -D -m 0644 ./deploy/kindexr.service /etc/systemd/system/kindexr.service
install -D -m 0640 ./deploy/kindexr.example.yaml /etc/kindexr/config.yaml
run:
go run ./cmd/kindexr --config ./deploy/kindexr.example.yaml
clean:
rm -rf ./bin