title: hello-jni NDK sample - ndk-build fails
body: <p>I am following the steps on <a href="http://developer.android.com/sdk/ndk/overview.html" rel="nofollow">http://developer.android.com/sdk/ndk/overview.html</a> to build the hello-jni sample, however when I get to Step 2 to run</p>
  
  <pre><code>cd $NDK-ROOT/samples/hello-jni
  $NDK-ROOT/ndk-build
  </code></pre>
  
  <p>in the Cygwin command prompt, I receive the following error messages:</p>
  
  <pre><code>/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
  /bin/sh: -c: line 1: syntax error: unexpected end of file
  Android NDK: Host awk tool is outdated. Please define HOST_AWK to point to Gawk
  or Nawk !
  </code></pre>
  
  <p>I have Cygwin 1.7.9, Gnu Make 3.8.2, and Gawk 3.1.8 on my Windows machine, along with the r5b release of the Android NDK.
  I also have set the HOST_AWK environment variable, which points to my Gawk folder.</p>
  
  <p>Unfortunatley the sample cannot run successfully without this step, (if I run hello-jni, I immediately receive an UnsatisfiedLinkError exception).</p>
  
  <p>Below is the portion of the init.mk file on my machine (found in NDK_ROOT/build/core) which creates this error:</p>
  
  <pre><code># Location of all awk scripts we use
  BUILD_AWK := $(NDK_ROOT)/build/awk
  
  AWK_TEST := $(shell $(HOST_AWK) -f $(BUILD_AWK)/check-awk.awk)
  $(call ndk_log,Host awk test returned: $(AWK_TEST))
  ifneq ($(AWK_TEST),Pass)
  $(call __ndk_info,Host awk tool is outdated. Please define HOST_AWK to point to Gawk or     Nawk !)
  $(call __ndk_error,Aborting.)
  endif
  </code></pre>
  
  <p>Thank-you for your help</p>