Maxim Sokhatsky 10 years ago
parent
commit
8871b378e0
4 changed files with 5 additions and 2 deletions
  1. BIN
      mad
  2. 2 1
      src/compile/mad_erl.erl
  3. 1 0
      src/mad_compile.erl
  4. 2 1
      src/mad_plan.erl

BIN
mad


+ 2 - 1
src/compile/mad_erl.erl

@@ -9,8 +9,9 @@ compile(File,Inc,Bin,Opt) ->
     BeamFile = erl_to_beam(Bin, File),
     Compiled = mad_compile:is_compiled(BeamFile, File),
     if  Compiled =:= false ->
-        io:format("Compiling ~s~n\r", [File]),
         Opts1 = ?COMPILE_OPTS(Inc, Bin, Opt),
+%        io:format("Compiling ~s Opts ~p~n\r", [File,Opts1]),
+        io:format("Compiling ~s~n\r", [File]),
         compile:file(File, Opts1),
         ok;
     true -> ok end.

+ 1 - 0
src/mad_compile.erl

@@ -24,6 +24,7 @@ dep(Cwd, _Conf, ConfigFile, Name) ->
     deps(Cwd, Conf, ConfigFile, mad_utils:get_value(deps, Conf1, [])),
 
     SrcDir = filename:join([mad_utils:src(DepPath)]),
+%    io:format("DepPath ==> ~p~n\r",[DepPath]),
 
     Files = files(SrcDir,".yrl") ++ 
             files(SrcDir,".xrl") ++ 

+ 2 - 1
src/mad_plan.erl

@@ -26,7 +26,8 @@ orderapps() ->
               Apps = proplists:get_value(applications,Opt,[]),
               [ { A,Name} || A <- Apps ];
          {error,_} -> skip
-    end || F <- filelib:wildcard("{apps,deps}/*/ebin/*.app"), not filelib:is_dir(F) ]),
+    end || F <- filelib:wildcard("{apps,deps}/*/ebin/*.app")  ++ 
+                filelib:wildcard("ebin/*.app"), not filelib:is_dir(F) ]),
     {ok,Sorted} = sort(Pairs),
     Sorted.