From 7b86bfb03ee785cb828139c94bb86817d3249667 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Thu, 7 Jan 2010 11:24:46 -0800 Subject: add a warning about using include in product spec files. currently disabled because there are too many of them. --- core/node_fns.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/node_fns.mk') diff --git a/core/node_fns.mk b/core/node_fns.mk index 5d2a669..31b8543 100644 --- a/core/node_fns.mk +++ b/core/node_fns.mk @@ -187,7 +187,10 @@ define _import-node $(eval _include_stack := $(2) $$(_include_stack)) $(call clear-var-list, $(3)) $(eval LOCAL_PATH := $(patsubst %/,%,$(dir $(2)))) + $(eval MAKEFILE_LIST :=) $(eval include $(2)) + $(eval _included := $(filter-out $(2),$(MAKEFILE_LIST))) + $(eval MAKEFILE_LIST :=) $(eval LOCAL_PATH :=) $(call copy-var-list, $(1).$(2), $(3)) $(call clear-var-list, $(3)) @@ -203,6 +206,13 @@ define _import-node endef # +# This will generate a warning for _included above +# $(if $(_included), \ +# $(eval $(warning product spec file: $(2)))\ +# $(foreach _inc,$(_included),$(eval $(warning $(space)$(space)$(space)includes: $(_inc)))),) +# + +# # $(1): context prefix # $(2): list of makefiles representing nodes to import # $(3): list of node variable names -- cgit v1.1