Browse Source

Recursively search "src" for .proto files

pull/3/head
Evan Miller 14 years ago
parent
commit
f389e79d39
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/rebar_protobuffs_compiler.erl

+ 2
- 2
src/rebar_protobuffs_compiler.erl View File

@ -36,7 +36,7 @@
%% =================================================================== %% ===================================================================
compile(_Config, _AppFile) -> compile(_Config, _AppFile) ->
case filelib:wildcard("src/*.proto") of
case rebar_utils:find_files("src</span>", ".*\\.proto$") of
[] -> [] ->
ok; ok;
FoundFiles -> FoundFiles ->
@ -60,7 +60,7 @@ compile(_Config, _AppFile) ->
clean(_Config, _AppFile) -> clean(_Config, _AppFile) ->
%% Get a list of generated .beam and .hrl files and then delete them %% Get a list of generated .beam and .hrl files and then delete them
Protos = filelib:wildcard("src/*.proto"),
Protos = rebar_utils:find_files("src</span>", ".*\\.proto$"),
BeamFiles = [fq_beam_file(F) || F <- Protos], BeamFiles = [fq_beam_file(F) || F <- Protos],
HrlFiles = [fq_hrl_file(F) || F <- Protos], HrlFiles = [fq_hrl_file(F) || F <- Protos],
Targets = BeamFiles ++ HrlFiles, Targets = BeamFiles ++ HrlFiles,

Loading…
Cancel
Save