diff options
| author | Mattias Andrée <maandree@kth.se> | 2021-04-22 20:49:48 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2021-04-22 20:51:38 +0200 |
| commit | 77e516665f23b9cb7af864318c61582d91ab5870 (patch) | |
| tree | 50772907d8d9ce249e47e034455489e22185ac98 /multicall-hardlinks.mk | |
| download | basic-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 'multicall-hardlinks.mk')
| -rw-r--r-- | multicall-hardlinks.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/multicall-hardlinks.mk b/multicall-hardlinks.mk new file mode 100644 index 0000000..aaec46d --- /dev/null +++ b/multicall-hardlinks.mk @@ -0,0 +1,12 @@ +all: basic-games + +install: basic-games 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 |
