diff options
Diffstat (limited to 'singlecall.mk')
-rw-r--r-- | singlecall.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/singlecall.mk b/singlecall.mk new file mode 100644 index 0000000..1e429f4 --- /dev/null +++ b/singlecall.mk @@ -0,0 +1,10 @@ +all: $(BIN) + +install: contacts + mkdir -p -- "$(DESTDIR)$(PREFIX)/lib" + 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 |