summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorflu0r1ne <flu0r1ne@flu0r1ne.net>2022-06-25 14:14:54 -0500
committerflu0r1ne <flu0r1ne@flu0r1ne.net>2022-06-25 14:14:54 -0500
commit9b34d154be78f253c7228767b78babd24af76f65 (patch)
tree3806c2bde2b9806e9d5e2dc91b048a3eb0c30a61 /Makefile
downloadbash-starter-9b34d154be78f253c7228767b78babd24af76f65.tar.xz
bash-starter-9b34d154be78f253c7228767b78babd24af76f65.zip
Add die function, safemode, and makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..b125340
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+ifeq ($(PREFIX),)
+ PREFIX := /usr/local
+endif
+
+ifeq ($(BINDIR),)
+ BINDIR := /bin
+endif
+
+CMD=ENTER_CMD_HERE
+
+make:
+
+install:
+ mkdir -p $(DESTDIR)$(PREFIX)$(BINDIR)/
+ install -m 755 $(CMD) $(DESTDIR)$(PREFIX)$(BINDIR)/
+
+uninstall:
+ rm -rf $(DESTDIR)$(PREFIX)$(BINDIR)/$(CMD)
+
+.PHONY: install uninstall make