aboutsummaryrefslogtreecommitdiffstats
path: root/multicall-hardlinks.mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-04 13:37:31 +0200
committerMattias Andrée <maandree@kth.se>2021-04-04 13:37:31 +0200
commitd831e279cb856ec720ed770ce9d0c39eb347b7e1 (patch)
tree51dac38fdba5dfdee06a46fa7bed3dc0f01c035f /multicall-hardlinks.mk
parentmisc (diff)
downloadcontacts-d831e279cb856ec720ed770ce9d0c39eb347b7e1.tar.gz
contacts-d831e279cb856ec720ed770ce9d0c39eb347b7e1.tar.bz2
contacts-d831e279cb856ec720ed770ce9d0c39eb347b7e1.tar.xz
m + add list-birthdays and set-contact-birthday
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--multicall-hardlinks.mk12
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