diff options
Diffstat (limited to 'multicall-hardlinks.mk')
-rw-r--r-- | multicall-hardlinks.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/multicall-hardlinks.mk b/multicall-hardlinks.mk new file mode 100644 index 0000000..be6ca66 --- /dev/null +++ b/multicall-hardlinks.mk @@ -0,0 +1,12 @@ +all: contacts + +install: contacts + mkdir -p -- "$(DESTDIR)$(PREFIX)/bin" + set -- $(BIN) &&\ + cp -- "$$1" "$(DESTDIR)$(PREFIX)/bin/$$1" &&\ + linkto="$$1" &&\ + shift 1 &&\ + cd -- "$(DESTDIR)$(PREFIX)/bin/" &&\ + for f; do\ + ln -- "$$linkto" "$$f" || exit 1;\ + done |