aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2021-08-01 01:53:24 +1200
committerTom Ryder <tom@sanctum.geek.nz>2021-08-01 01:53:24 +1200
commita6f9eb8eb2e48e0f6b89539b065a5932afac7aba (patch)
tree970a16efd294a03f44576732569e9ab01add6f79 /Makefile
parentMerge branch 'release/v1.0.0' (diff)
parentAdd a basic install recipe (diff)
downloaddoomsh-0243a57816008165112b6be505a49fe5c3601946.tar.gz (sig)
doomsh-0243a57816008165112b6be505a49fe5c3601946.zip
Merge branch 'release/v2.0.0'v2.0.0
* release/v2.0.0: Add a basic install recipe Use tabs for indentation Pare down Makefile for tests Relicense to GPLv3+ Adjust wording in README.md Update clone URL in README.md Apply shebang for doomsh with make recipe Make paths to ignored files absolute
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4a13472
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+.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)