From c15d84e7716f31584535143b93acef565d8f3730 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 6 Apr 2021 03:32:03 +0200 Subject: Swap install rule in multicall-symlinks.mk amd singlecall.mk so it is as intended MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- multicall-symlinks.mk | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'multicall-symlinks.mk') diff --git a/multicall-symlinks.mk b/multicall-symlinks.mk index 314cecd..2cd918c 100644 --- a/multicall-symlinks.mk +++ b/multicall-symlinks.mk @@ -1,5 +1,10 @@ all: contacts -install: $(BIN) +install: contacts + mkdir -p -- "$(DESTDIR)$(PREFIX)/lib" mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" - cp -- $(BIN) "$(DESTDIR)$(PREFIX)/bin/" + cp -- contacts "$(DESTDIR)$(PREFIX)/lib/" + cd -- "$(DESTDIR)$(PREFIX)/bin/" &&\ + for f in $(BIN); do\ + ln -s -- ../lib/contacts "$$f" || exit 1;\ + done -- cgit v1.2.3-70-g09d2