summaryrefslogtreecommitdiff
path: root/tools/aidl/aidl.cpp
diff options
context:
space:
mode:
author Ying Wang <wangying@android.com> 2015-07-24 00:38:08 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-07-24 00:38:08 +0000
commit430c8c3e48b361f75d29d05b8fda3aac22ceb1f9 (patch)
tree2bc4374bac3481263f9939c873655f2d11fecad6 /tools/aidl/aidl.cpp
parent6430812a9381af01b0c7b48cedd6a11c1add6942 (diff)
parent50fb02da537c77b598a9db5892101f99c48d7783 (diff)
Merge "Add phony source target in the generated dependency file of aidl."
Diffstat (limited to 'tools/aidl/aidl.cpp')
-rw-r--r--tools/aidl/aidl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/aidl/aidl.cpp b/tools/aidl/aidl.cpp
index 14c9f95a247b..e31b03c07e9a 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 "<input_aidl_file>: " 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 "<imported_file>: " so make won't fail if the imported file has
// been deleted, moved or renamed in incremental build.
import = g_imports;