diff options
-rw-r--r-- | multicall-symlinks.mk | 9 | ||||
-rw-r--r-- | singlecall.mk | 9 |
2 files changed, 9 insertions, 9 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 diff --git a/singlecall.mk b/singlecall.mk index 1e429f4..1068186 100644 --- a/singlecall.mk +++ b/singlecall.mk @@ -1,10 +1,5 @@ all: $(BIN) -install: contacts - mkdir -p -- "$(DESTDIR)$(PREFIX)/lib" +install: $(BIN) mkdir -p -- "$(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 + cp -- $(BIN) "$(DESTDIR)$(PREFIX)/bin/" |