Fix dependancy checking for headers by ensuring "include" is always in the eep IncludePath

This commit is contained in:
Vagabond 2010-03-02 17:34:12 -05:00
parent 4ce01860e9
commit c4d3f0ea65

View file

@ -96,7 +96,7 @@ doterl_compile(Config, OutDir, MoreSources) ->
-spec include_path(Source::string(), Config::#config{}) -> [string()]. -spec include_path(Source::string(), Config::#config{}) -> [string()].
include_path(Source, Config) -> include_path(Source, Config) ->
ErlOpts = rebar_config:get(Config, erl_opts, []), ErlOpts = rebar_config:get(Config, erl_opts, []),
[filename:dirname(Source)] ++ proplists:get_all_values(i, ErlOpts). ["include", filename:dirname(Source)] ++ proplists:get_all_values(i, ErlOpts).
-spec inspect(Source::string(), IncludePath::[string()]) -> {string(), [string()]}. -spec inspect(Source::string(), IncludePath::[string()]) -> {string(), [string()]}.
inspect(Source, IncludePath) -> inspect(Source, IncludePath) ->