youtubebeat/vendor/github.com/elastic/beats/packetbeat/Makefile

27 lines
644 B
Makefile
Raw Normal View History

2018-11-18 11:08:38 +01:00
BEAT_NAME?=packetbeat
BEAT_TITLE?=Packetbeat
SYSTEM_TESTS?=true
TEST_ENVIRONMENT=false
ES_BEATS?=..
include ${ES_BEATS}/libbeat/scripts/Makefile
# Collects all dependencies and then calls update
.PHONY: collect
collect: imports
.PHONY: benchmark
benchmark:
go test -short -bench=. ./... -cpu=2
.PHONY: create-tcp-protocol
create-tcp-protocol: python-env
@${PYTHON_ENV}/bin/python ${ES_BEATS}/packetbeat/scripts/create_tcp_protocol.py
# Generates imports for all modules and metricsets
.PHONY: imports
imports: python-env
@mkdir -p include
@mkdir -p protos
@${PYTHON_ENV}/bin/python ${ES_BEATS}/script/generate_imports.py ${BEAT_PATH}