aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2021-08-01 01:53:00 +1200
committerTom Ryder <tom@sanctum.geek.nz>2021-08-01 01:53:00 +1200
commit372b974eb67979d3e129f52c0a2707b53ab69f64 (patch)
tree916f1179b3245be66e508ce0761973c850b85907
parentUse tabs for indentation (diff)
downloaddoomsh-372b974eb67979d3e129f52c0a2707b53ab69f64.tar.gz
doomsh-372b974eb67979d3e129f52c0a2707b53ab69f64.zip
Add a basic install recipe
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fbb7a46..4a13472 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,16 @@
-.PHONY: all clean
+.PHONY: all install clean
.SUFFIXES:
.SUFFIXES: .bash
ALL = doomsh
BASH = /bin/bash
+PREFIX = /usr/local
all: $(ALL)
.bash:
$(BASH) -c :
awk -v interpreter=$(BASH) 'NR == 1 { $$1 ="#!" interpreter } 1' $< > $@
chmod +x ./$@
+install:
+ mkdir -p -- $(PREFIX)/bin
+ cp -- doomsh $(PREFIX)/bin
clean:
rm -f -- $(ALL)