FILTER= PARAMS= ifeq ($(debug),1) PARAMS+=debug=1 endif ifdef pid ifneq ($(pid),0) PARAMS+=pid=$(pid) FILTER=FILTER_PID=${pid} endif endif all: c-build go-build build: CGO_ENABLED=1 go build -gcflags="all=-N -l" -buildvcs=false -o euspace c: docker exec -it 62d0676aa0b7 sh -c 'cd /opt/github/euspace/ebpftracer && make all ${PARAMS}' c-build: c go-build: docker exec -it 62d0676aa0b7 bash -c 'cd /opt/github/euspace && source ~/.g/env && make build' go: go-build run run: ssh root@10.211.55.27 'cd /opt/github/euspace && TRACES_ENDPOINT=http://10.0.12.192:18080/docp/api/v2/data/receive ${FILTER} ./euspace --listen="0.0.0.0:8123"' send_run: ssh root@10.211.55.27 'cd /opt/github/euspace && SEND=1 TRACES_ENDPOINT=http://10.0.12.192:18080/docp/api/v2/data/receive ${FILTER} ./euspace --listen="0.0.0.0:8123"'