Android Hints – getting current working directoy path in makefile

Something I often forget when creating Android.mk files is how to get the current directory the make file is in. The build systems provides many useful enviroment functions, including one called “my-dir” to give you exactly that!

It can leveraged as such:
MY_VAR := $(call my-dir)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>