forked from copelandd/kazoo-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (28 loc) · 825 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
32
33
34
35
36
37
38
39
40
41
42
ROOT = ..
MAKEDIRS = $(sort $(wildcard */Makefile))
.PHONY: all deps compile compile-test compile-test-direct clean clean-test eunit test first $(MAKEDIRS)
all: compile
deps: ACTION = deps
deps: $(MAKEDIRS)
compile: ACTION = all
compile: $(MAKEDIRS)
compile-lean: ACTION = compile-lean
compile-lean: $(MAKEDIRS)
compile-test: ACTION = compile-test
compile-test: $(MAKEDIRS)
compile-test-direct: ACTION = compile-test-direct
compile-test-direct: $(MAKEDIRS)
clean: ACTION = clean
clean: $(MAKEDIRS)
clean-test: ACTION = clean-test
clean-test: $(MAKEDIRS)
eunit: ACTION = eunit
eunit: $(MAKEDIRS)
test: ACTION = test
test: $(MAKEDIRS)
first:
@$(MAKE) -j1 -C kazoo_stdlib/ $(ACTION)
@$(MAKE) -j1 -C kazoo_amqp/ $(ACTION)
@$(MAKE) -j1 -C kazoo_data/ $(ACTION)
$(MAKEDIRS): first
@$(MAKE) -j1 -C $(@D) $(ACTION)