title: How can I use makefile syntax in Android.mk
body: <p>I'd like to use <strong>makefile</strong> syntax in Android.mk. Cause I wanna generate a special bin file. But I don't know how to do it. I tried several method, but no one worked. Anybody knows it?
  Thanks.</p>
  
  <p>Right now, my implementation is:
  </p>
  
  <pre><code>include $(CLEAR_VARS)
  INTERNAL_OBMRES_FILES := $(TOPDIR)frameworks/base/core/res/assets/images/android-logo-mask.png \
      $(TOPDIR)frameworks/base/core/res/assets/images/android-logo-shine.png
  
  LOCAL_MODULE := obmRes.bin
  LOCAL_MODULE_TAGS := optional
  LOCAL_REQUIRED_MODULES := $(RGB2565)
  BUILT_OBMRES_TARGET := $(PRODUCT_OUT)/obmRes.bin
  
  obmRes.bin:$(BUILT_OBMRES_TARGET)
  $(BUILT_OBMRES_TARGET): $(INTERNAL_OBMRES_FILES)
          $(hide) convert $(TOPDIR)frameworks/base/core/res/assets/images/android-logo-mask.png $(TOPDIR)frameworks/base/core/res/assets/images/android-logo-shine.png -compose dstover -size 256x64 -composite -depth 8 rgb:$(PRODUCT_OUT)/temp.bin
          $(hide) $(RGB2565) &lt; $(PRODUCT_OUT)/temp.bin &gt; $@
          $(hide) rm -f $(PRODUCT_OUT)/temp.bin
  
  include $(BUILD_PHONY_PACKAGE)
  </code></pre>
  
  <p>But it don't work.</p>