mirror of
https://github.com/correl/rebar.git
synced 2024-11-27 11:09:55 +00:00
Merge pull request #81 from evanmiller/em-protobuffs
Recursively search "src" for .proto files
This commit is contained in:
commit
719c9a50c7
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@
|
||||||
%% ===================================================================
|
%% ===================================================================
|
||||||
|
|
||||||
compile(_Config, _AppFile) ->
|
compile(_Config, _AppFile) ->
|
||||||
case filelib:wildcard("src/*.proto") of
|
case rebar_utils:find_files("src", ".*\\.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", ".*\\.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…
Reference in a new issue