diff options
author | David Tardon <dtardon@redhat.com> | 2013-04-20 15:24:30 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-04-20 15:24:30 +0200 |
commit | cd0d9485972bdb27a993ef44444d9d612b61ba71 (patch) | |
tree | 8f065df448488f21a08bd04facbb80266b212f7a /solenv/gbuild | |
parent | 699a22fd492a45a376735e6e9c5f9d474671264f (diff) |
warn if using nonexist. dirs in include path
Change-Id: If3c44175a20b7c1720c7200c9bb06372740f95fe
Diffstat (limited to 'solenv/gbuild')
-rw-r--r-- | solenv/gbuild/LinkTarget.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/solenv/gbuild/LinkTarget.mk b/solenv/gbuild/LinkTarget.mk index 44e41f286c3a..720a23d8c61a 100644 --- a/solenv/gbuild/LinkTarget.mk +++ b/solenv/gbuild/LinkTarget.mk @@ -718,7 +718,15 @@ endif endef +define gb_LinkTarget__check_srcdir_paths +$(if $(filter-out $(wildcard $(2)),$(2)),\ + $(call gb_Output_warn,gb_LinkTarget_set_include: include paths $(filter-out $(wildcard $(2)),$(2)) do not exist) \ +) +endef + define gb_LinkTarget_set_include +$(call gb_LinkTarget__check_srcdir_paths,$(1),\ + $(patsubst -I%,%,$(filter -I$(SRCDIR)/%,$(filter-out -I$(OUTDIR)/% -I$(WORKDIR)/%,$(2))))) $(call gb_LinkTarget_get_headers_target,$(1)) \ $(call gb_LinkTarget_get_target,$(1)) : INCLUDE := $(2) ifeq ($(gb_FULLDEPS),$(true)) |