aboutsummaryrefslogtreecommitdiffstats
path: root/multicall-symlinks.mk
diff options
context:
space:
mode:
Diffstat (limited to 'multicall-symlinks.mk')
-rw-r--r--multicall-symlinks.mk9
1 files changed, 7 insertions, 2 deletions
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