Skip to content

Commit

Permalink
build(fix): use MAKEFILE_LIST to grab the directory where Makefile.de…
Browse files Browse the repository at this point in the history
…fs is in
  • Loading branch information
houqp committed Oct 10, 2016
1 parent 3792d26 commit 55032c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile.defs
Expand Up @@ -9,7 +9,9 @@ endif

UNAME:=$(shell uname -s)

TOOLCHAIN_DIR=$(CURDIR)/toolchain
# use MAKEFILE_DIR instead of CURDIR for variables that are exported through -include
MAKEFILE_DIR=$(dir $(abspath $(lastword $(MAKEFILE_LIST))))
TOOLCHAIN_DIR=$(MAKEFILE_DIR)toolchain
POCKETBOOK_TOOLCHAIN=$(TOOLCHAIN_DIR)/pocketbook-toolchain
ANDROID_TOOLCHAIN=$(TOOLCHAIN_DIR)/android-toolchain
NDKABI=9
Expand Down

0 comments on commit 55032c8

Please sign in to comment.