[make] Compare whole words for LKINC check. (#160)

Previously, if lk was built from an external directory that contained
"lk" in the name, the "findstring" check would succeed and not add lk's
directory to LKINC. This switches to a word comparison instead of
a substring search.
This commit is contained in:
Girts
2016-09-06 22:26:37 +03:00
committed by Travis Geiselbrecht
parent e724ff9707
commit 71792d0d25

View File

@@ -10,7 +10,7 @@ DEFAULT_PROJECT ?=
TOOLCHAIN_PREFIX ?=
# check if LKROOT is already a part of LKINC list and add it only if it is not
ifneq ($(findstring $(LKROOT),$(LKINC)), $(LKROOT))
ifeq ($(filter $(LKROOT),$(LKINC)), )
LKINC := $(LKROOT) $(LKINC)
endif