anchor.diff:          Specs ->
               lists:foreach(fun(#spec{target=Target, objects=Objects}) ->
                                     rebar_file_utils:delete_each([Target]),
  -                                  rebar_file_utils:delete_each(Objects)
  +                                  rebar_file_utils:delete_each(Objects),
  +                                  rebar_file_utils:delete_each(port_deps(Objects))
                             end, Specs)
       end,
       ok.
  
positive.code:     end.
  
  needs_compile(Source, Bin) ->
      %% TODO: Generate depends using gcc -MM so we can also
      %% check for include changes
      filelib:last_modified(Bin) < filelib:last_modified(Source).
  
  needs_link(SoName, []) ->
      filelib:last_modified(SoName) == 0;
  
negative.code: port_objects(SourceFiles) ->
      [replace_extension(O, ".o") || O <- SourceFiles].
  
  port_deps(SourceFiles) ->
      [replace_extension(O, ".d") || O <- SourceFiles].
  
  port_opts(Config, Opts) ->
      [port_opt(Config, O) || O <- Opts].
  
  