Make proper and neotoma dev-only dependencies
This patch makes erlware_commons easier to include as a dependency by removing depedencies that are not needed at run time. The top-level Makefile creates a .DEV_MODE marker file which is detected by rebar.config.script. When the marker file is present, the development only dependencies proper and neotoma are included and a macro 'DEV_ONLY' is defined. The macro is used to only enable the proper tests for development mode. The ec_semver_parser.peg is now located in priv/ and is moved into src/ by the Makefile. The generated ec_semver_parser.erl is now under version control; it need not be rebuilt by all projects wishing to include erlware_commons. It will be rebuilt, as before this change, on every make invocation.
This commit is contained in:
parent
38cd7a4d62
commit
d9c6ec1d28
7 changed files with 286 additions and 20 deletions
|
@ -1,11 +1,9 @@
|
|||
%% -*- mode: Erlang; fill-column: 80; comment-column: 75; -*-
|
||||
|
||||
%% Dependencies ================================================================
|
||||
{deps, [{neotoma, "",
|
||||
{git, "https://github.com/seancribbs/neotoma.git", {branch, master}}},
|
||||
{proper, "", {git, "https://github.com/bkearns/proper.git", {branch, master}}},
|
||||
{rebar_vsn_plugin, ".*", {git, "https://github.com/erlware/rebar_vsn_plugin.git",
|
||||
{branch, "master"}}}]}.
|
||||
{deps, [{rebar_vsn_plugin, ".*",
|
||||
{git, "https://github.com/erlware/rebar_vsn_plugin.git",
|
||||
{branch, "master"}}}]}.
|
||||
|
||||
{erl_first_files, ["ec_dictionary"]}.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue