-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
51 lines (37 loc) · 1.18 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
### Copyright (c) 2016-2017, DuoMark International, Inc. All Rights Reserved.
### Author Jay Nelson <[email protected]>
### Project name and version are defined by relx.config line:
### {release, {esse, 0.2.0}, [esse]}
PROJECT_AWK := awk '/^{release,/ {sub(/^{release, {/, ""); sub(/,.*/, ""); print}'
VERSION_AWK := awk '/^{release,/ {sub(/^{release, [^ ]+ "/, ""); sub(/\".*/, ""); print}'
PROJECT := $(shell ${PROJECT_AWK} <relx.config)
PROJECT_VERSION := $(shell ${VERSION_AWK} <relx.config)
PROJECT_DESCRIPTION = Essential Erlang Server Sent Events (SSE)
HOST := `hostname`
ROOT := $(shell pwd)
# Set to always use 4 spaces on generated code
SP=4
# Change to V=1 for verbose debugging
V=0
DEPS = asciideck eper jsone uuid epocxy
dep_jsone_commit = 1.4.0
dep_uuid_commit = v1.5.4
PLT_APPS = crypto
ERLC_OPTS := +debug_info +"{cover_enabled, true}"
include erlang.mk
CMN_EFLAGS = \
-boot start_sasl \
-smp enable \
-setcookie ${COOKIE} \
-name ${PROJECT}@${HOST} \
+P 1000000 \
+K true +A 160 -sbt ts
DEV_EFLAGS = \
-pa ${ROOT}/deps/*/ebin \
-pa ${ROOT}/ebin \
${CMN_EFLAGS}
REL_EFLAGS = \
-pa ${ROOT_REL}/lib/*/ebin \
${CMN_EFLAGS}
dev:
erl ${DEV_EFLAGS} -s esse_app