summaryrefslogtreecommitdiffstats
path: root/multicall-symlinks.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-symlinks.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-symlinks.mk')
-rw-r--r--multicall-symlinks.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/multicall-symlinks.mk b/multicall-symlinks.mk
new file mode 100644
index 0000000..592804a
--- /dev/null
+++ b/multicall-symlinks.mk
@@ -0,0 +1,10 @@
+all: pdatools
+
+install: pdatools install-common
+ mkdir -p -- "$(DESTDIR)$(PREFIX)/lib"
+ mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
+ cp -- pdatools "$(DESTDIR)$(PREFIX)/lib/"
+ cd -- "$(DESTDIR)$(PREFIX)/bin/" &&\
+ for f in $(BIN); do\
+ ln -s -- ../lib/pdatools "$$f" || exit 1;\
+ done