aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2021-08-01 01:35:00 +1200
committerTom Ryder <tom@sanctum.geek.nz>2021-08-01 01:35:00 +1200
commit472461c2e2f92d3070e030b34342d824fa57d608 (patch)
treea2cf67cfe0cf7f16b4e9c4a694debe9fc947ccdc /Makefile
parentMake paths to ignored files absolute (diff)
downloaddoomsh-472461c2e2f92d3070e030b34342d824fa57d608.tar.gz
doomsh-472461c2e2f92d3070e030b34342d824fa57d608.zip
Apply shebang for doomsh with make recipe
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..fbb7a46
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+.PHONY: all clean
+.SUFFIXES:
+.SUFFIXES: .bash
+ALL = doomsh
+BASH = /bin/bash
+all: $(ALL)
+.bash:
+ $(BASH) -c :
+ awk -v interpreter=$(BASH) 'NR == 1 { $$1 ="#!" interpreter } 1' $< > $@
+ chmod +x ./$@
+clean:
+ rm -f -- $(ALL)