I just download the android open source project and tried to build it with make the I receive the message:
build/core/prebuilt.mk:91: *** recipe commences before first target. Stop.
Here is the corresponding make file snippet (The first line here being line number 89):
ifneq ($(prebuilt_module_is_a_library),)
ifneq ($(LOCAL_IS_HOST_MODULE),)
$(transform-host-ranlib-copy-hack)
else
$(transform-ranlib-copy-hack)
endif
endif
I am not sure what's wrong with this make file? The preceding white space on line 91 is a tab.
TABmeans that Make interprets line 91 as a command, which should be part of a rule. The snippet is enough to go on; if it is part of a rule, Make is somehow failing to parse the first line of the rule correctly, and if it is not part of a rule, line 91 should not be a command and should not begin with aTAB. - Betatransform-host-ranlib-copy-hackis supposed to be part of a recipe, so having it be preceded by a TAB is correct. The problem is that make doesn't think you're in a recipe context, which means that something before theifeqyou've shown is not right. My suspicion is that the version of make you have is not compatible with the version used by the author of the open source project and whatever comes before theifeqis not portable between them. - MadScientistifeqthat's about all I can say. See git.savannah.gnu.org/cgit/make.git/tree/NEWS for info on changes to each version of make. - MadScientist