aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFilip Wandzio <contact@philw.dev>2025-09-25 23:21:00 +0200
committerFilip Wandzio <contact@philw.dev>2025-09-25 23:21:00 +0200
commitc35fd32d1a3c9bdf91e2091b05741978606a3900 (patch)
treeacd2ccfbedad5c013ae537ee5850a931e76481f0 /Makefile
parent53c9924ad4db79bc9c4b1c2fce045e7fe7d6f23e (diff)
downloadwhiterabbit-c35fd32d1a3c9bdf91e2091b05741978606a3900.tar.gz
whiterabbit-c35fd32d1a3c9bdf91e2091b05741978606a3900.zip
Add makefile and enable support for building on arch based distributions
Organize script into modular functions Add manpages Signed-off-by: Filip Wandzio <contact@philw.dev>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..fe1c42b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
1PREFIX ?= /usr/local
2BINDIR ?= $(PREFIX)/bin
3MANDIR ?= $(PREFIX)/share/man/man1
4
5install:
6 @echo "Installing whiterabbit..."
7 install -Dm755 whiterabbit.sh $(BINDIR)/whiterabbit
8 install -Dm644 whiterabbit.1 $(MANDIR)/whiterabbit.1
9 @echo "Installed to $(BINDIR)/whiterabbit and man page to $(MANDIR)/whiterabbit.1"
10
11uninstall:
12 @echo "Removing whiterabbit..."
13 rm -f $(BINDIR)/whiterabbit
14 rm -f $(MANDIR)/whiterabbit.1
15 @echo "Removed whiterabbit and its man page"