~srivathsan/note

3937558b52e18c7c7d120da650fd6d9b7673bca0 — Srivathsan Murali 1 year, 9 months ago 9c42e25
Makefile added
1 files changed, 18 insertions(+), 0 deletions(-)

A Makefile
A Makefile => Makefile +18 -0
@@ 0,0 1,18 @@
PREFIX ?= /usr
DESTDIR ?= 
BINDIR ?= $(PREFIX)/bin
BASHCOMPDIR ?= $(PREFIX)/share/bash-completion/completions

all:
	@echo "Note is a shell script, so there is nothing to do. Try \"make install\" instead."

install:
	@install -v -d "$(DESTDIR)$(BINDIR)/" && install -m 0755 -v note "$(DESTDIR)$(BINDIR)/note"
	@install -v -d "$(DESTDIR)$(BASHCOMPDIR)" && install -m 0644 -v note.bash-completion "$(DESTDIR)$(BASHCOMPDIR)/note"

uninstall:
	@rm -vrf \
		"$(DESTDIR)$(BINDIR)/note" \
		"$(DESTDIR)$(BASHCOMPDIR)/note"

.PHONY: install uninstall