add find-and-enflac pcm compressor

This commit is contained in:
2026-08-08 21:31:52 +02:00
parent 2fe5db60c2
commit cb18297d11
5 changed files with 369 additions and 0 deletions

33
find-and-enflac/Makefile Normal file
View File

@@ -0,0 +1,33 @@
BIN := find-and-enflac
PREFIX := $(HOME)
.PHONY: default install build check test lint fmt fmt-check clean
default: install
install: build
install -d $(PREFIX)/bin
install -m 0755 $(BIN) $(PREFIX)/bin/$(BIN)
build:
go build -o $(BIN) .
check: fmt-check lint test
test:
go test ./...
lint:
go vet ./...
fmt:
gofmt -s -w .
fmt-check:
@out="$$(gofmt -s -l .)"; \
if [ -n "$$out" ]; then \
echo "unformatted files:"; echo "$$out"; exit 1; \
fi
clean:
rm -f $(BIN)