Add Makefile
authorCase Duckworth <acdw@acdw.net>
Tue, 26 May 2020 12:02:25 +0000 (07:02 -0500)
committerCase Duckworth <acdw@acdw.net>
Tue, 26 May 2020 12:02:25 +0000 (07:02 -0500)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..3096726
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+# bollux: a gemini client in bash
+# Author: Case Duckworth <acdw@acdw.net>
+# License: MIT
+
+PREFIX ?= /usr
+
+PRGN := bollux
+
+.PHONY: def install uninstall
+
+def:
+       @echo "run 'make install' to install"
+       @echo "run 'make uninstall' to uninstall"
+
+install: $(PRGN)
+       install -D $< $(DESTDIR)$(PREFIX)/bin
+
+uninstall:
+       rm -f $(DESTDIR)$(PREFIX)/bin/$(PRGN)