diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2021-08-01 01:53:24 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2021-08-01 01:53:24 +1200 |
commit | a6f9eb8eb2e48e0f6b89539b065a5932afac7aba (patch) | |
tree | 970a16efd294a03f44576732569e9ab01add6f79 /Makefile | |
parent | Merge branch 'release/v1.0.0' (diff) | |
parent | Add a basic install recipe (diff) | |
download | doomsh-a6f9eb8eb2e48e0f6b89539b065a5932afac7aba.tar.gz doomsh-a6f9eb8eb2e48e0f6b89539b065a5932afac7aba.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-- | Makefile | 16 |
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) |