From 79f699edca26c035a8bcd68c7d5a13b4fbcbf3be Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 18 Feb 2014 12:57:32 +0100 Subject: More GNU Make 3.81 compatibility --- functions.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'functions.mk') diff --git a/functions.mk b/functions.mk index 1287e4321ea3..c92cdbc54ea0 100644 --- a/functions.mk +++ b/functions.mk @@ -9,3 +9,6 @@ filename-to-dep = $(dir $1).$(notdir $1).dep # Return the full path to a program by looking it up in $PATH, or the # empty string if not found. find-program = $(shell for i in $$(IFS=: ; echo $$PATH); do p=$$i/$(strip $1); if [ -e $$p ]; then echo $$p; break; fi; done) + +# Remove trailing slash. +remove-trailing-slash = $(patsubst %/,%,$(1)) -- cgit 1.4.1