2021-12-19 21:10:57 +01:00
|
|
|
--- libbeat/scripts/Makefile.orig 2021-12-17 15:54:41 UTC
|
2020-06-07 21:21:31 +00:00
|
|
|
+++ libbeat/scripts/Makefile
|
2020-09-10 19:30:18 +00:00
|
|
|
@@ -42,7 +42,7 @@ GOFILES = $(shell find . -type f -name '*.go' 2>/dev/n
|
2020-06-07 21:21:31 +00:00
|
|
|
GOFILES_NOVENDOR = $(shell find . -type f -name '*.go' -not -path "*/vendor/*" 2>/dev/null)
|
|
|
|
|
GOFILES_ALL = $(GOFILES) $(shell find $(ES_BEATS) -type f -name '*.go' 2>/dev/null)
|
2021-07-04 16:57:00 +02:00
|
|
|
GOPACKAGES_STRESSTESTS=$(shell find . -name '*.go' 2>/dev/null | xargs grep -l '\+build.*stresstest' | xargs -n1 dirname | uniq)
|
2020-06-07 21:21:31 +00:00
|
|
|
-SHELL=bash
|
|
|
|
|
+SHELL=sh
|
|
|
|
|
ES_HOST?=elasticsearch
|
|
|
|
|
ES_PORT?=9200
|
|
|
|
|
ES_USER?=beats
|
2021-12-19 21:10:57 +01:00
|
|
|
@@ -346,12 +346,12 @@ ifndef EXCLUDE_COMMON_UPDATE_TARGET
|
2020-06-07 21:21:31 +00:00
|
|
|
update: python-env fields collect config ## @build Update expects the most recent version of libbeat in the GOPATH
|
|
|
|
|
@echo "Updating generated files for ${BEAT_NAME}"
|
|
|
|
|
|
|
|
|
|
-ifneq ($(shell [[ $(BEAT_NAME) == libbeat || $(BEAT_NAME) == metricbeat ]] && echo true ),true)
|
2021-07-04 16:57:00 +02:00
|
|
|
+ifneq ($(shell [[ $(BEAT_NAME) = libbeat || $(BEAT_NAME) = metricbeat ]] && echo true ),true)
|
2020-06-07 21:21:31 +00:00
|
|
|
mkdir -p include
|
2020-09-10 19:30:18 +00:00
|
|
|
go run ${INSTALL_FLAG} ${ES_BEATS}/dev-tools/cmd/asset/asset.go -license $(LICENSE) -pkg include -in fields.yml -out include/fields.go $(BEAT_NAME)
|
2020-06-07 21:21:31 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
-ifneq ($(shell [[ $(BEAT_NAME) == libbeat || $(BEAT_NAME) == metricbeat ]] && echo true ),true)
|
2021-07-04 16:57:00 +02:00
|
|
|
+ifneq ($(shell [[ $(BEAT_NAME) = libbeat || $(BEAT_NAME) = metricbeat ]] && echo true ),true)
|
2020-06-07 21:21:31 +00:00
|
|
|
@# Update docs
|
|
|
|
|
@mkdir -p docs
|
2020-06-13 22:57:33 +00:00
|
|
|
@${PYTHON_ENV_EXE} ${ES_BEATS}/libbeat/scripts/generate_fields_docs.py $(PWD)/fields.yml ${BEAT_TITLE} ${ES_BEATS}
|