bashblog/Makefile

18 lines
462 B
Makefile

BINDIR ?= /usr/local/bin
MANDIR ?= /usr/local/man
MANFLAVOR ?= man
install:
@echo Installing the executable to $(BINDIR)
@install -D -m 755 bb.sh $(BINDIR)/bb
@echo Installing the '$(MANFLAVOR)' man page to $(MANDIR)/man1
@install -D -m 644 bb.1.$(MANFLAVOR) $(MANDIR)/man1/bb.1
uninstall:
@echo Removing the executable from $(BINDIR)
@rm -f $(BINDIR)/bb
@echo Removing the man page from $(MANDIR)
@rm -f $(MANDIR)/man1/bb.1
.PHONY: install uninstall