forked from rabbitmq/rabbitmq-public-umbrella
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathumbrella.mk
55 lines (41 loc) · 1.34 KB
/
umbrella.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
53
54
55
# The default goal
dist:
UMBRELLA_BASE_DIR:=..
include $(UMBRELLA_BASE_DIR)/common.mk
# We start at the initial package (i.e. the one in the current directory)
PACKAGE_DIR:=$(call canonical_path,.)
# Produce all of the releasable artifacts of this package
.PHONY: dist
dist: $(PACKAGE_DIR)+dist
# Produce a source tarball for this package
.PHONY: srcdist
srcdist: $(PACKAGE_DIR)+srcdist
# Clean the package and all its dependencies
.PHONY: clean
clean: $(PACKAGE_DIR)+clean-with-deps
# Clean just the initial package
.PHONY: clean-local
clean-local: $(PACKAGE_DIR)+clean
# Run erlang with the package, its tests, and all its dependencies
# available.
.PHONY: run
run: $(PACKAGE_DIR)+run
# Run the broker with the package, its tests, and all its dependencies
# available.
.PHONY: run-in-broker
run-in-broker: $(PACKAGE_DIR)+run-in-broker
# Runs the package's tests
.PHONY: test
test: $(PACKAGE_DIR)+test
# Test the package with code coverage recording on. Note that
# coverage only covers the in-broker tests.
.PHONY: coverage
coverage: $(PACKAGE_DIR)+coverage
# Runs the package's tests
.PHONY: check-xref
check-xref: $(PACKAGE_DIR)+check-xref
# Do the initial package
include $(UMBRELLA_BASE_DIR)/do-package.mk
# We always need the coverage package to support the coverage goal
PACKAGE_DIR:=$(COVERAGE_PATH)
$(eval $(call do_package,$(COVERAGE_PATH)))