diff --git a/tools/aidl/aidl.cpp b/tools/aidl/aidl.cpp index 14c9f95a247b1..e31b03c07e9a8 100644 --- a/tools/aidl/aidl.cpp +++ b/tools/aidl/aidl.cpp @@ -675,6 +675,10 @@ generate_dep_file(const Options& options, const document_item_type* items) fprintf(to, "\n"); + // Output ": " so make won't fail if the input .aidl file + // has been deleted, moved or renamed in incremental build. + fprintf(to, "%s :\n", options.inputFileName.c_str()); + // Output ": " so make won't fail if the imported file has // been deleted, moved or renamed in incremental build. import = g_imports;