Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

*** recipe commences before first target. Stop

Tags:

makefile

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.

like image 455
darklord Avatar asked Jan 02 '16 03:01

darklord


1 Answers

Make is very touchy about spaces and tabs, it treats indented lines as commands, so you need to remove them. E.g. it should be:

ifneq ($(prebuilt_module_is_a_library),)
ifneq ($(LOCAL_IS_HOST_MODULE),)
$(transform-host-ranlib-copy-hack)
else
$(transform-ranlib-copy-hack)
endif
endif
like image 108
user1642523 Avatar answered Oct 05 '22 13:10

user1642523