forked from erocci/erocci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
61 lines (48 loc) · 1.61 KB
/
Makefile.in
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
59
60
61
PROJECT = erocci
VERSION = 0.5
DEPS = \
erocci_core \
erocci_authnz \
erocci_listener_http \
erocci_backend_mnesia \
erocci_backend_dbus \
edown
LOCAL_DEPS = erocci
EDOC_OPTS = {app_default, "http://www.erlang.org/doc/"} \
,{doclet, edown_doclet} \
,{top_level_readme, {"$(CURDIR)/README.md", "http://github.com/erocci/erocci"}}
EDOC_SRC_DIRS = \
$(ALL_APPS_DIRS) \
$(DEPS_DIR)/erocci_core \
$(DEPS_DIR)/erocci_authnz \
$(DEPS_DIR)/erocci_listener_http \
$(DEPS_DIR)/erocci_backend_mnesia \
$(DEPS_DIR)/erocci_dbus
VSN = $(shell $(CURDIR)/version.sh $(VERSION))
LOCK = deps.lock
DEV_MODE ?= @enable_dev_mode@
ifeq ($(DEV_MODE),yes)
$(foreach dep,$(DEPS),$(eval $(dep)_v = master))
else
-include $(LOCK)
endif
dep_erocci_core = git https://github.com/erocci/erocci_core.git $(erocci_core_v)
dep_erocci_authnz = git https://github.com/erocci/erocci_authnz.git $(erocci_authnz_v)
dep_erocci_listener_http = git https://github.com/erocci/erocci_listener_http.git $(erocci_listener_http)
dep_erocci_backend_mnesia = git https://github.com/erocci/erocci_backend_mnesia.git $(erocci_backend_mnesia)
dep_erocci_backend_dbus = git https://github.com/erocci/erocci_backend_dbus.git $(erocci_backend_dbus)
include erlang.mk
fetch: $(ALL_DEPS_DIRS)
@for d in $(ALL_DEPS_DIRS); do \
$(MAKE) -C $$d --no-print-directory $@ || true; \
done
lock: deps
@rm -f $(LOCK)
@for dep in $(DEPS); do \
v=$$(cd deps/$${dep} && git describe --always); \
echo "$${dep}_v = $${v}" | tee --append $(LOCK); \
done
test:
erocci-ct:
@$(MAKE) --no-print-directory -C apps/erocci tests
.PHONY: fetch lock test erocci-ct