summaryrefslogtreecommitdiffstats
path: root/multicall-hardlinks.mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-06 03:38:11 +0200
committerMattias Andrée <maandree@kth.se>2021-04-06 03:38:11 +0200
commite99553d3609956d1ecb2b28ceefe28e1b68aecb9 (patch)
tree50ebdc8a2818ecf73893d7b94172de0b8a057a90 /multicall-hardlinks.mk
parentUse libsimple instead of libcore (diff)
downloadpdatools-e99553d3609956d1ecb2b28ceefe28e1b68aecb9.tar.gz
pdatools-e99553d3609956d1ecb2b28ceefe28e1b68aecb9.tar.bz2
pdatools-e99553d3609956d1ecb2b28ceefe28e1b68aecb9.tar.xz
Add (default) ability to build multicall binary
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'multicall-hardlinks.mk')
-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..a01ae8f
--- /dev/null
+++ b/multicall-hardlinks.mk
@@ -0,0 +1,12 @@
+all: pdatools
+
+install: pdatools install-common
+ 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