opensnitch/proto/Makefile
themighty1 3abb3e4c0d Use daemon's event timestamp in UI.
Use the timestamp instead of the event object when iterating over the last events. ~15x speed increase.
Increase event buffer to 100. On my machine I routinely hit the ceiling of 50 events under some multitasking workloads. Small buffer results in connection attempts not being logged.
Fix Makefile to rebuild when ui.proto changes
2020-12-22 22:50:18 +03:00

12 lines
444 B
Makefile

all: ../daemon/ui/protocol/ui.pb.go ../ui/opensnitch/ui_pb2.py
../daemon/ui/protocol/ui.pb.go: ui.proto
protoc -I. ui.proto --go_out=plugins=grpc:../daemon/ui/protocol/
../ui/opensnitch/ui_pb2.py: ui.proto
python3 -m grpc_tools.protoc -I. --python_out=../ui/opensnitch/ --grpc_python_out=../ui/opensnitch/ ui.proto
clean:
@rm -rf ../daemon/ui/protocol/ui.pb.go
@rm -rf ../ui/opensnitch/ui_pb2.py
@rm -rf ../ui/opensnitch/ui_pb2_grpc.py