OSDN Git Service

Fix incorrect prerequisites
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 15 Aug 2013 10:49:06 +0000 (18:49 +0800)
committerGerrit Code Review <gerrit@cyanogenmod.org>
Wed, 2 Oct 2013 01:27:32 +0000 (01:27 +0000)
commitcd953bdfeed2fbbffeae604da40b2403d72362b7
tree767511aca9002be757efe7713a4a36857515f8f8
parentc712352d95b0cb9aee934341accab10c39b2c37a
Fix incorrect prerequisites

'Nothing to be done' build failed because

* $(LOCAL_MODULE) should not be a prerequisite
* The created symlink doesn't exist in the host out tree

Besides, all prerequisites of $(SYMLINKS) are removed. This is because
'make' checks the timestamp of the file the link references rather than
the link itself. Therefore $(LOCAL_INSTALLED_MODULE) is a useless
prerequisite. On the other hand, $(LOCAL_PATH)/Android.mk should not
be a prerequisite of $(SYMLINKS) unless it is also a prerequisite of
$(LOCAL_INSTALLED_MODULE). Otherwise, if $(LOCAL_PATH)/Android.mk is
newer than $(LOCAL_INSTALLED_MODULE), $(SYMLINKS) will always be
re-made.

Correct the prerequisites of $(SUPERUSER_RC) as well.

Change-Id: I5746e983046a9cdc3ee2b8ecd3827f1f7e6b596e
Android.mk