diff --git a/apex/androidmk.go b/apex/androidmk.go index 714045fc2..0abec0d93 100644 --- a/apex/androidmk.go +++ b/apex/androidmk.go @@ -217,6 +217,12 @@ func (a *apexBundle) androidMkForFiles(w io.Writer, apexBundleName, apexName, mo } fmt.Fprintln(w, "include $(BUILD_PREBUILT)") } + + // m will build . as well. + if fi.moduleName != moduleName && a.primaryApexType { + fmt.Fprintln(w, ".PHONY: "+fi.moduleName) + fmt.Fprintln(w, fi.moduleName+": "+moduleName) + } } return moduleNames }