summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build-aux/Makefile.head.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-aux/Makefile.head.mk b/build-aux/Makefile.head.mk
index 47c17c9..11b1374 100644
--- a/build-aux/Makefile.head.mk
+++ b/build-aux/Makefile.head.mk
@@ -35,7 +35,7 @@ at.relto = $(foreach p,$2,$(call _at.relto,$1,$p))
at.path = $(call at.relto,.,$1)
_at.addprefix = $(if $(filter /%,$2),$2,$1/$2)
-at.addprefix = $(call at.path,$(foreach f,$2, $(call _at.addprefix,$1,$f) ))
+at.addprefix = $(foreach f,$2, $(addsuffix $(if $(filter %/,$f),/),$(call at.path,$(call _at.addprefix,$1,$f)) ))
define at.nl