summaryrefslogtreecommitdiffstats
path: root/multicall-symlinks.mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-04-22 20:49:48 +0200
committerMattias Andrée <maandree@kth.se>2021-04-22 20:51:38 +0200
commit77e516665f23b9cb7af864318c61582d91ab5870 (patch)
tree50772907d8d9ce249e47e034455489e22185ac98 /multicall-symlinks.mk
downloadbasic-games-77e516665f23b9cb7af864318c61582d91ab5870.tar.gz
basic-games-77e516665f23b9cb7af864318c61582d91ab5870.tar.bz2
basic-games-77e516665f23b9cb7af864318c61582d91ab5870.tar.xz
First commit, with implementation of tic-tac-toe
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-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..042f94a
--- /dev/null
+++ b/multicall-symlinks.mk
@@ -0,0 +1,10 @@
+all: basic-games
+
+install: basic-games install-common
+ mkdir -p -- "$(DESTDIR)$(PREFIX)/lib"
+ mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
+ cp -- basic-games "$(DESTDIR)$(PREFIX)/lib/"
+ cd -- "$(DESTDIR)$(PREFIX)/bin/" &&\
+ for f in $(BIN); do\
+ ln -s -- ../lib/basic-games "$$f" || exit 1;\
+ done