aboutsummaryrefslogtreecommitdiffstats
path: root/java/system_modules.go
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2018-07-24 13:00:52 -0700
committerColin Cross <ccross@android.com>2018-07-25 04:27:10 +0000
commita03c43a4a779c15c6d1744514496c3b5cd6d1374 (patch)
tree48cfee5c57fe2cddac73242c4500c12061f5c909 /java/system_modules.go
parentcce87cbaa0ba5060deb4fa811afbe4b2465a3c01 (diff)
downloadbuild_soong-a03c43a4a779c15c6d1744514496c3b5cd6d1374.tar.gz
build_soong-a03c43a4a779c15c6d1744514496c3b5cd6d1374.tar.bz2
build_soong-a03c43a4a779c15c6d1744514496c3b5cd6d1374.zip
Mark soong-generated phony rules as PHONY
Test: add --writable=out/ to kati, see fewer warnings with this change Change-Id: I4beb47f41888e3743b298c90edfeb38fcc0b3d32
Diffstat (limited to 'java/system_modules.go')
-rw-r--r--java/system_modules.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/java/system_modules.go b/java/system_modules.go
index 73a51312..d98e0abc 100644
--- a/java/system_modules.go
+++ b/java/system_modules.go
@@ -134,6 +134,7 @@ func (system *SystemModules) AndroidMk() android.AndroidMkData {
fmt.Fprintln(w, makevar, ":=", system.outputFile.String())
fmt.Fprintln(w, ".KATI_READONLY", ":=", makevar)
fmt.Fprintln(w, name+":", "$("+makevar+")")
+ fmt.Fprintln(w, ".PHONY:", name)
fmt.Fprintln(w)
makevar = "SOONG_SYSTEM_MODULES_LIBS_" + name
fmt.Fprintln(w, makevar, ":=", strings.Join(system.properties.Libs, " "))