-2

Hi I have makefile with variable, somethings like this :

NDK     := ~/Application/Android/SDK/NDK
ARCH    := arm
ifeq ($(ARCH),arm)
//..etc..
endif

but when I try to makefile i get this error :

: NDK: command not found
: ARCH: command not found
: syntax error near unexpected token `$(ARCH),arm'

I'm on ubuntu
that is variable I know, but why i got error for them ? whats wrong anf how to fix ?
I'm new in ubuntu!

jotik
  • 17,044
  • 13
  • 58
  • 123
Mehrdad
  • 67
  • 2
  • 9

1 Answers1

1

You're trying to run the ./makefile as an executable. But you should instead run it using make. For example:

make -f makefile

or just

make

if your makefile is properly named makefile or Makefile.

In case you really need to execute the makefile directly, see this StackOverflow question and answers about how to add a proper shebang to the makefile.

Community
  • 1
  • 1
jotik
  • 17,044
  • 13
  • 58
  • 123