From 71792d0d250a6f6d5878af4cddcce7fba341c963 Mon Sep 17 00:00:00 2001 From: Girts Date: Tue, 6 Sep 2016 22:26:37 +0300 Subject: [PATCH] [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. --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index 09a6ab5f..02158b80 100644 --- a/makefile +++ b/makefile @@ -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