Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a03c43a4 authored by Dan Willemsen's avatar Dan Willemsen Committed by Colin Cross
Browse files

Mark soong-generated phony rules as PHONY

Test: add --writable=out/ to kati, see fewer warnings with this change
Change-Id: I4beb47f41888e3743b298c90edfeb38fcc0b3d32
parent cce87cba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -320,7 +320,7 @@ func (ddoc *Droiddoc) AndroidMk() android.AndroidMkData {
					fmt.Fprintln(w, "droidcore: checkapi")
				}
				if ddoc.updateCurrentApiTimestamp != nil {
					fmt.Fprintln(w, ".PHONY:", ddoc.Name(), "-update-current-api")
					fmt.Fprintln(w, ".PHONY:", ddoc.Name()+"-update-current-api")
					fmt.Fprintln(w, ddoc.Name()+"-update-current-api:",
						ddoc.updateCurrentApiTimestamp.String())

+1 −0
Original line number Diff line number Diff line
@@ -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, " "))