signald-go/Makefile

12 lines
No EOL
406 B
Makefile

signaldctl: signald/client-protocol
go build -o signaldctl ./cmd/signaldctl
protocol.json:
echo '{"type": "protocol", "version": "v1alpha1"}' | nc -q0 -U /var/run/signald/signald.sock | jq 'select(.type == "protocol").data' > protocol.json
signald/client-protocol: protocol.json tools/generator/*
go run ./tools/generator < protocol.json
clean:
rm -rf protocol.json
rm -rf signald/client-protocol/*