~srivathsan/note

ref: 3937558b52e18c7c7d120da650fd6d9b7673bca0 note/Makefile -rw-r--r-- 544 bytes
3937558bSrivathsan Murali Makefile added 1 year, 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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