am b392641d
: Make fail if it\'s called after including
Merge commit 'b392641d9b07d6321aed828c983af04115da8aab' into eclair-plus-aosp * commit 'b392641d9b07d6321aed828c983af04115da8aab': Make $(my-dir) fail if it's called after including $(CLEAR_VARS)
This commit is contained in:
commit
9db1fc2bea
1 changed files with 8 additions and 1 deletions
|
@ -109,7 +109,14 @@ endef
|
|||
|
||||
# Figure out where we are.
|
||||
define my-dir
|
||||
$(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST),$(MAKEFILE_LIST))))
|
||||
$(strip \
|
||||
$(eval md_file_ := $$(lastword $$(MAKEFILE_LIST))) \
|
||||
$(if $(filter $(CLEAR_VARS),$(md_file_)), \
|
||||
$(error LOCAL_PATH must be set before including $$(CLEAR_VARS)) \
|
||||
, \
|
||||
$(patsubst %/,%,$(dir $(md_file_))) \
|
||||
) \
|
||||
)
|
||||
endef
|
||||
|
||||
###########################################################
|
||||
|
|
Loading…
Reference in a new issue