-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
58 lines (46 loc) · 1.29 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
PROJECT = hut
PROJECT_DESCRIPTION = helper library for making Erlang libraries logging framework agnostic
PROJECT_VERSION = 1.4.0
ifneq (,$(filter $(shell uname -s),OpenBSD NetBSD FreeBSD DragonFly))
make = gmake
else
make = make
endif
examples_basic := \
default \
sasl \
default_no_gate \
default_debug_enabled \
default_warning_enabled \
noop \
ioformat \
custom \
lager \
lager_custom_sink
examples_rebar3 := \
default \
sasl \
noop \
lager
examples_elixir := \
default \
ci:: test_examples_basic
ci:: test_examples_rebar3
ci:: test_examples_elixir
test_examples_basic:: all
@echo "\n=== Run basic examples\n"
cd examples/basic && $(foreach test,$(examples_basic), \
echo "\n=== Run basic example: $(test)\n" && $(make) run_example_$(test) &&) \
echo "\n=== Finished running basic examples\n"
test_examples_rebar3:: all
@echo "\n=== Run rebar3 examples\n"
cd examples/rebar3 && $(foreach test,$(examples_rebar3), \
echo "\n=== Run rebar3 example: $(test)\n" && $(make) run_example_$(test) &&) \
echo "\n=== Finished running rebar3 examples\n"
test_examples_elixir:: all
@echo "\n=== Run elixir examples\n"
cd examples/elixir && \
echo "\n=== Run elixir example\n" && $(make) run && \
echo "\n=== Finished running elixir example\n"
app:: rebar.config
include erlang.mk