OSDN Git Service

Remove use of .INTERMEDIATE
authorColin Cross <ccross@android.com>
Wed, 28 Oct 2015 20:28:11 +0000 (13:28 -0700)
committerColin Cross <ccross@android.com>
Wed, 28 Oct 2015 20:31:40 +0000 (13:31 -0700)
commit42470e915dadea5cb6245704f358874a4ac867ec
tree7da95f960f639344735b5f5764ae741ca7633e65
parent506113d2671e8f3dd5a46b63b7996accec6acb35
Remove use of .INTERMEDIATE

make 3.81 has a bug where combining an up-to-date .INTERMEDIATE rule
with -j causes an infinite loop (http://savannah.gnu.org/bugs/?15919).
.INTERMEDIATE was only necessary to support multiple outputs while only
running a command once, remove .INTERMEDIATE by replacing
$(KATI_OUTPUTS) dependencies with $(KATI_BUILD_NINJA).  We can assume
that $(KATI_NINJA_SH) will be updated at the same time as
$(KATI_BUILD_NINJA), and not explicitly depend on it.

Also remove generateonly and fastincremental, which are no longer
necessary and were overcomplicating ninja.mk.  kati now always runs due
to FORCE, and ninja is run by a phony rule that depends on
$(KATI_BUILD_NINJA).

Bug: 25344116
Change-Id: I99d2713b1532ea11d83da9a11b1be26cfe13a5d2
core/ninja.mk