summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common.mk7
1 files changed, 1 insertions, 6 deletions
diff --git a/common.mk b/common.mk
index 69bcc06..66d6c24 100644
--- a/common.mk
+++ b/common.mk
@@ -28,11 +28,6 @@ indent = emacs --batch $1 \
# Normalize a .po(t) file
pofmt = msguniq -Fi --to-code=UTF-8
-# Usage: as a variable
-# relative path to `/` from $(bindir)
-# used for symlinking libexec files
-rootdir = $(shell sed -r 's|^/||;s|[^/]+|..|g'<<<$(bindir))
-
# Detect things about the director we're in ####################################
progs += $(filter-out $(no-progs),$(shell find . -maxdepth 1 -type f -executable -printf '%f\n'))
@@ -125,7 +120,7 @@ $(sort $(addprefix $(DESTDIR)$(bindir)/,$(filter-out $(libexecs),$(progs)))): $(
install -Dm755 '$<' '$@'
$(sort $(addprefix $(DESTDIR)$(bindir)/,$(libexecs))): $(DESTDIR)$(bindir)/%: %
install -d '$(@D)'
- ln -sf '$(rootdir)$(pkglibexecdir)/$(@F)' "$@"
+ ln -srf '$(pkglibexecdir)/$(@F)' '$@'
# pkglibexecdir: $(libexecs) vs $(libs)
$(sort $(addprefix $(DESTDIR)$(pkglibexecdir)/,$(libexecs))): $(DESTDIR)$(pkglibexecdir)/%: %
install -Dm755 '$<' '$@'