forked from elastic/beats
/
xpack.mk
53 lines (41 loc) · 839 Bytes
/
xpack.mk
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# This is a minimal Makefile for Beats that are built with Mage. Its only
# responsibility is to provide compatibility with existing Jenkins and Travis
# setups.
#
# Variables
#
.DEFAULT_GOAL := help
PWD := $(CURDIR)
#
# Includes
#
include $(ES_BEATS)/dev-tools/make/mage.mk
#
# Targets (alphabetically sorted).
#
.PHONY: check
check: mage
mage check
.PHONY: clean
clean: mage
mage clean
fix-permissions:
.PHONY: fmt
fmt: mage
mage fmt
# Default target.
.PHONY: help
help:
@echo Use mage rather than make. Here are the available mage targets:
@mage -l
.PHONY: release
release: mage
mage package
stop-environment:
.PHONY: testsuite
testsuite: mage
-rm build/TEST-go-integration.out
mage update build unitTest integTest || ( cat build/TEST-go-integration.out && false )
.PHONY: update
update: mage
mage update