Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 1 commit
  • 1 file changed
  • 0 comments
  • 1 contributor

Showing 1 changed file with 9 additions and 1 deletion. Show diff stats Hide diff stats

  1. 10  lib/tools/src/make.erl
10  lib/tools/src/make.erl
@@ -24,7 +24,7 @@
24 24
 %% If Emakefile is missing the current directory is used.
25 25
 -module(make).
26 26
 
27  
--export([all/0,all/1,files/1,files/2]).
  27
+-export([all/0,all/1,with/1,with/2,files/1,files/2]).
28 28
 
29 29
 -include_lib("kernel/include/file.hrl").
30 30
 
@@ -42,6 +42,14 @@ all(Options) ->
42 42
 	    error
43 43
     end.
44 44
 
  45
+with(Emake) ->
  46
+    with(Emake, []).
  47
+
  48
+with(Emake,Options) ->
  49
+    {MakeOpts,CompileOpts} = sort_options(Options,[],[]),
  50
+    Files = transform(Emake,CompileOpts,[],[]),
  51
+    do_make_files(Files,MakeOpts).
  52
+
45 53
 files(Fs) ->
46 54
     files(Fs, []).
47 55
 

No commit comments for this range

Something went wrong with that request. Please try again.