forked from bernielomax/rabbitmqbeat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (26 loc) · 758 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
BEATNAME=rabbitmqbeat
BEAT_DIR=github.com/bernielomax/rabbitmqbeat
SYSTEM_TESTS=false
TEST_ENVIRONMENT=false
ES_BEATS?=./vendor/github.com/elastic/beats
GOPACKAGES=$(shell glide novendor)
PREFIX?=.
# Path to the libbeat Makefile
-include $(ES_BEATS)/metricbeat/Makefile
# Initial beat setup
.PHONY: setup
setup: copy-vendor
make create-metricset
make collect
# Copy beats into vendor directory
.PHONY: copy-vendor
copy-vendor:
mkdir -p vendor/github.com/elastic/
cp -R ${GOPATH}/src/github.com/elastic/beats vendor/github.com/elastic/
rm -rf vendor/github.com/elastic/beats/.git
.PHONY: update-deps
update-deps:
glide update --no-recursive --strip-vcs
# This is called by the beats packer before building starts
.PHONY: before-build
before-build: