sanic/Makefile

27 lines
478 B
Makefile
Raw Normal View History

2023-12-02 17:53:44 +01:00
mpd:
mkdir -p /tmp/sanic/{music,playlists}
2023-12-30 15:02:13 +01:00
touch /tmp/sanic/mpd_db
2023-12-02 17:53:44 +01:00
mpd --no-daemon ./mpd.conf
2024-01-22 12:37:28 +01:00
run: build
./server
build:
go build -v -o sanic
tidy: ## add missing and remove unused modules
go mod tidy
verify: ## verify dependencies have expected content
go mod verify
test: ## run tests
go test ./...
cert: ## create https certificate for testing
go run $GOROOT/src/crypto/tls/generate_cert.go --host localhost
container:
podman build -t dotfiles:latest .