aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)