summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-06-12 11:12:40 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-06-12 11:12:40 -0400
commit624be97781dfd9060e5d0c6341c8c21e95b8c47b (patch)
treed0aab1d41332bdbc905b6f2f78ec96a6f5ed1efd /build-aux
parentf602c8fe063392e9f38390c6eb0816bef85063ac (diff)
(systemd) use at.addprefix
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/Makefile.each.tail/10-std.mk14
1 files changed, 7 insertions, 7 deletions
diff --git a/build-aux/Makefile.each.tail/10-std.mk b/build-aux/Makefile.each.tail/10-std.mk
index 5150a71..ca78f3c 100644
--- a/build-aux/Makefile.each.tail/10-std.mk
+++ b/build-aux/Makefile.each.tail/10-std.mk
@@ -19,13 +19,13 @@ std.clean_files += $(std.gen_files) $(std.cfg_files) $(std.out_files)
$(foreach c,src gen cfg out sys clean slow,$(eval std.$c_files := $$(std.$c_files)))
# Make each of the standard variables relative to the correct directory
-std.src_files := $(patsubst ./%,%,$(addprefix $(srcdir)/,$(std.src_files)))
-std.gen_files := $(patsubst ./%,%,$(addprefix $(srcdir)/,$(std.gen_files)))
-std.cfg_files := $(patsubst ./%,%,$(addprefix $(outdir)/,$(std.cfg_files)))
-std.out_files := $(patsubst ./%,%,$(addprefix $(outdir)/,$(std.out_files)))
-std.sys_files := $(addprefix $(DESTDIR),$(std.sys_files))
-std.clean_files := $(patsubst ./%,%,$(addprefix $(outdir)/,$(std.clean_files)))
-std.slow_files := $(patsubst ./%,%,$(addprefix $(outdir)/,$(std.slow_files)))
+std.src_files := $(call at.addprefix,$(srcdir)/,$(std.src_files))
+std.gen_files := $(call at.addprefix,$(srcdir)/,$(std.gen_files))
+std.cfg_files := $(call at.addprefix,$(outdir)/,$(std.cfg_files))
+std.out_files := $(call at.addprefix,$(outdir)/,$(std.out_files))
+std.sys_files := $(addprefix $(DESTDIR),$(std.sys_files))
+std.clean_files := $(call at.addprefix,$(outdir)/,$(std.clean_files))
+std.slow_files := $(call at.addprefix,$(outdir)/,$(std.slow_files))
# Creative targets
$(outdir)/build : $(std.out_files)