diff options
-rw-r--r-- | common.mk | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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 '$<' '$@' |