diff options
author | Ying Wang <wangying@google.com> | 2015-07-22 17:42:35 -0700 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2015-07-22 17:49:56 -0700 |
commit | 50fb02da537c77b598a9db5892101f99c48d7783 (patch) | |
tree | 20287302b1c254ead95e438f37cb7ee61ef68e6e /tools/aidl/aidl.cpp | |
parent | 37353dc13e11000473f5aa43d5713816f2b6a83f (diff) |
Add phony source target in the generated dependency file of aidl.
This fixes make error when the source .aidl file is moved around but
its path relative to LOCAL_PATH doesn't change.
Bug: 22666539
Change-Id: Idf2492145e4927779d184932a09d61e4fe8ded0f
Diffstat (limited to 'tools/aidl/aidl.cpp')
-rw-r--r-- | tools/aidl/aidl.cpp | 4 |
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; |