~srivathsan/note

ref: 93cc638b0ef99c84f0cb781b2e3963a7cb122910 note/Makefile -rw-r--r-- 544 bytes
93cc638bSrivathsan Murali version 0.1.0 2 years 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