Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add ability to dynamically make use of make -- minor

  • Loading branch information...
commit fabc6175cadaae6371f2f421558dd6f329371a87 1 parent 5d89ddd
Anthony Jackson authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 lib/tools/src/make.erl
View
10 lib/tools/src/make.erl
@@ -24,7 +24,7 @@
%% If Emakefile is missing the current directory is used.
-module(make).
--export([all/0,all/1,files/1,files/2]).
+-export([all/0,all/1,with/1,with/2,files/1,files/2]).
-include_lib("kernel/include/file.hrl").
@@ -42,6 +42,14 @@ all(Options) ->
error
end.
+with(Emake) ->
+ with(Emake, []).
+
+with(Emake,Options) ->
+ {MakeOpts,CompileOpts} = sort_options(Options,[],[]),
+ Files = transform(Emake,CompileOpts,[],[]),
+ do_make_files(Files,MakeOpts).
+
files(Fs) ->
files(Fs, []).
Please sign in to comment.
Something went wrong with that request. Please try again.