Skip to content
Browse files

use include_lib instead of include to avoid sticking to local deps wh…

…ich do not exist when erica is built as a rebar dependency
  • Loading branch information...
1 parent 1e23713 commit 5f5c106517b6cc16bdf8009c36937a5342ec2650 @yrashk yrashk committed with
Showing with 12 additions and 15 deletions.
  1. +1 −4 rebar.config
  2. +1 −1 src/erica_clone.erl
  3. +2 −2 src/erica_config.erl
  4. +1 −1 src/erica_core.erl
  5. +1 −1 src/erica_ignore.erl
  6. +1 −1 src/erica_macros.erl
  7. +2 −2 src/erica_push.erl
  8. +1 −1 src/erica_templater.erl
  9. +2 −2 src/erica_util.erl
View
5 rebar.config
@@ -1,10 +1,7 @@
%%-*- mode: erlang -*-
%% Erlang compiler options
-{erl_opts, [{i, "include"},
- {i, "deps/ibrowse/src/"},
- {i, "deps/couchbeam/include"},
- debug]}.
+{erl_opts, [debug]}.
{app_bin, ["priv/elrca"]}.
View
2 src/erica_clone.erl
@@ -5,7 +5,7 @@
-module(erica_clone).
--include("erica.hrl").
+-include_lib("erica/include/erica.hrl").
-export([clone/2]).
View
4 src/erica_config.erl
@@ -5,8 +5,8 @@
-module(erica_config).
--include("deps/couchbeam/include/couchbeam.hrl").
--include("erica.hrl").
+-include_lib("couchbeam/include/couchbeam.hrl").
+-include_lib("erica/include/erica.hrl").
-export([new/0, new/1,
update/2,
View
2 src/erica_core.erl
@@ -6,7 +6,7 @@
-module(erica_core).
-author('Benoît Chesneau <benoitc@e-engura.org>').
--include("erica.hrl").
+-include_lib("erica/include/erica.hrl").
-export([run/1]).
View
2 src/erica_ignore.erl
@@ -7,7 +7,7 @@
-author('Benoît Chesneau <benoitc@e-engura.org>').
--include("erica.hrl").
+-include_lib("erica/include/erica.hrl").
-export([init/2,
ignore/2]).
View
2 src/erica_macros.erl
@@ -7,7 +7,7 @@
-author('Benoît Chesneau <benoitc@e-engura.org>').
--include("erica.hrl").
+-include_lib("erica/include/erica.hrl").
-export([process_macros/2,
get_source_id/1]).
View
4 src/erica_push.erl
@@ -8,8 +8,8 @@
-author('Benoît Chesneau <benoitc@e-engura.org>').
-include_lib("kernel/include/file.hrl").
--include("erica.hrl").
--include("couchbeam.hrl").
+-include_lib("erica/include/erica.hrl").
+-include_lib("couchbeam/include/couchbeam.hrl").
-export([push/2]).
View
2 src/erica_templater.erl
@@ -13,7 +13,7 @@
-export([resolve_variables/2,
render/2]).
--include("erica.hrl").
+-include_lib("erica/include/erica.hrl").
-define(TEMPLATE_RE, ".*\\.template\$").
View
4 src/erica_util.erl
@@ -5,8 +5,8 @@
-module(erica_util).
--include("ibrowse.hrl").
--include("erica.hrl").
+-include_lib("ibrowse/src/ibrowse.hrl").
+-include_lib("erica/include/erica.hrl").
-define(BLOCKSIZE, 32768).
-define(SEPARATOR, $\/).

0 comments on commit 5f5c106

Please sign in to comment.
Something went wrong with that request. Please try again.