diff options
| author | Filip Wandzio <contact@philw.dev> | 2025-09-25 23:21:00 +0200 |
|---|---|---|
| committer | Filip Wandzio <contact@philw.dev> | 2025-09-25 23:21:00 +0200 |
| commit | c35fd32d1a3c9bdf91e2091b05741978606a3900 (patch) | |
| tree | acd2ccfbedad5c013ae537ee5850a931e76481f0 /Makefile | |
| parent | 53c9924ad4db79bc9c4b1c2fce045e7fe7d6f23e (diff) | |
| download | whiterabbit-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-- | Makefile | 15 |
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 @@ | |||
| 1 | PREFIX ?= /usr/local | ||
| 2 | BINDIR ?= $(PREFIX)/bin | ||
| 3 | MANDIR ?= $(PREFIX)/share/man/man1 | ||
| 4 | |||
| 5 | install: | ||
| 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 | |||
| 11 | uninstall: | ||
| 12 | @echo "Removing whiterabbit..." | ||
| 13 | rm -f $(BINDIR)/whiterabbit | ||
| 14 | rm -f $(MANDIR)/whiterabbit.1 | ||
| 15 | @echo "Removed whiterabbit and its man page" | ||
