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
33 lines
577 B
Makefile
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
|