Files
galahad2lcd/Makefile
T
Maksim Totmin 4c34f0bedc Initial commit: Go driver for the Lian Li Galahad II LCD
Streams H.264 to the Galahad II LCD via USB (gousb) with:
- ffmpeg CLI transcoding (no fragile FFmpeg C-ABI bindings)
- pure-Go Annex-B access-unit splitting
- framerate pacing with graceful shutdown and USB reconnect
- TOML config, cobra CLI, structured slog logging, unit tests
2026-08-19 12:03:54 +07:00

33 lines
577 B
Makefile

BINARY := galahad2lcd
PKG := ./cmd/galahad2lcd
VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
LDFLAGS := -s -w -X main.version=$(VERSION)
.PHONY: all build test vet lint fmt install uninstall clean
all: build
build:
go build -trimpath -ldflags "$(LDFLAGS)" -o bin/$(BINARY) $(PKG)
test:
go test ./...
vet:
go vet ./...
fmt:
gofmt -l -w cmd internal
lint:
go vet ./...
gofmt -l cmd internal
install: build
install -m 0755 bin/$(BINARY) /usr/local/bin/$(BINARY)
uninstall:
rm -f /usr/local/bin/$(BINARY)
clean:
rm -rf bin