Skip to content
leeyi edited this page Feb 17, 2019 · 1 revision

how to deps in Makefile

# ...
DEPS = cowboy lager jsx mysql
dep_cowboy_commit = 2.6.1
dep_lager_commit = 3.6.8
dep_jsx_commit = 2.9.0
dep_mysql = git https://github.com/mysql-otp/mysql-otp 1.4.0

DEP_PLUGINS = cowboy

# this must be first
include erlang.mk

# Compile flags
ERLC_COMPILE_OPTS= +'{parse_transform, lager_transform}'

# Append these settings
ERLC_OPTS += $(ERLC_COMPILE_OPTS)
TEST_ERLC_OPTS += $(ERLC_COMPILE_OPTS)
# ...
Clone this wiki locally