~srivathsan/note

note/Makefile -rw-r--r-- 725 bytes
10774e27Srivathsan Murali getting man started 1 year, 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
PREFIX ?= /usr
DESTDIR ?= 
BINDIR ?= $(PREFIX)/bin
BASHCOMPDIR ?= $(PREFIX)/share/bash-completion/completions
MANDIR ?= $(PREFIX)/share/man

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 src/note "$(DESTDIR)$(BINDIR)/note"
	@install -v -d "$(DESTDIR)$(BASHCOMPDIR)" && install -m 0644 -v src/note.bash-completion "$(DESTDIR)$(BASHCOMPDIR)/note"
	@install -v -d "$(DESTDIR)$(MANDIR)" && install -m 0644 -v man/note.1 "$(DESTDIR)$(MANDIR)/man1/note.1"

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

.PHONY: install uninstall