about summary refs log tree commit diff
path: root/functions.mk
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-18T11·57+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-18T11·57+0100
commit79f699edca26c035a8bcd68c7d5a13b4fbcbf3be (patch)
tree493bc59f07e63297dd032042128034cc96460f31 /functions.mk
parent581a160c11dd3de66d9cd1a6e01c0641909546ef (diff)
More GNU Make 3.81 compatibility
Diffstat (limited to 'functions.mk')
-rw-r--r--functions.mk3
1 files changed, 3 insertions, 0 deletions
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))