icingabeat/Makefile

23 lines
784 B
Makefile
Raw Normal View History

2017-04-18 14:04:14 +02:00
BEAT_NAME=icingabeat
2019-08-15 14:05:30 +02:00
BEAT_PATH=github.com/icinga/icingabeat
2021-09-23 14:17:11 +02:00
BEAT_DOC_URL?=https://icinga.com/docs/icingabeat
2019-08-15 14:05:30 +02:00
BEAT_GOPATH=$(firstword $(subst :, ,${GOPATH}))
SYSTEM_TESTS=false
TEST_ENVIRONMENT=false
2021-09-23 12:16:43 +02:00
ES_BEATS_IMPORT_PATH=github.com/elastic/beats/v7
ES_BEATS?=$(shell go list -m -f '{{.Dir}}' ${ES_BEATS_IMPORT_PATH})
2019-08-15 14:05:30 +02:00
LIBBEAT_MAKEFILE=$(ES_BEATS)/libbeat/scripts/Makefile
2021-09-23 12:16:43 +02:00
GOPACKAGES=$(shell go list ${BEAT_PATH}/... | grep -v /tools)
GOBUILD_FLAGS=-i -ldflags "-X ${ES_BEATS_IMPORT_PATH}/libbeat/version.buildTime=$(NOW) -X ${ES_BEATS_IMPORT_PATH}/libbeat/version.commit=$(COMMIT_ID)"
MAGE_IMPORT_PATH=github.com/magefile/mage
2019-08-15 14:05:30 +02:00
NO_COLLECT=true
2018-12-20 16:48:19 +01:00
CHECK_HEADERS_DISABLED=true
# Path to the libbeat Makefile
2019-08-15 14:05:30 +02:00
-include $(LIBBEAT_MAKEFILE)
.PHONY: copy-vendor
copy-vendor:
2021-09-23 12:16:43 +02:00
mage vendorUpdate