PREFIX ?= /usr/local BINDIR ?= $(PREFIX)/bin MANDIR ?= $(PREFIX)/share/man/man1 install: @echo "Installing whiterabbit..." install -Dm755 wh.sh $(BINDIR)/wh install -Dm644 wh.1 $(MANDIR)/wh.1 @echo "Installed to $(BINDIR)/whand man page to $(MANDIR)/wh.1" uninstall: @echo "Removing wh..." rm -f $(BINDIR)/wh rm -f $(MANDIR)/wh.1 @echo "Removed wh and its man page"