forked from rkitover/vimpager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (25 loc) · 810 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PREFIX?= /usr/local
SYSCONFDIR?= ${PREFIX}/etc
INSTALL?= install
INSTALLBIN= ${INSTALL} -D -m 555
INSTALLMAN= ${INSTALL} -D -m 444
INSTALLCONF= ${INSTALL} -D -m 644
all: vimpager.1 README
uninstall:
rm -f ${PREFIX}/bin/vimpager
rm -f ${PREFIX}/bin/vimcat
rm -f ${PREFIX}/share/man/man1/vimpager.1
rm -f ${PREFIX}/etc/vimpagerrc
install:
${INSTALLBIN} vimpager ${DESTDIR}${PREFIX}/bin/vimpager
${INSTALLBIN} vimcat ${DESTDIR}${PREFIX}/bin/vimcat
${INSTALLMAN} vimpager.1 ${DESTDIR}${PREFIX}/share/man/man1/vimpager.1
${INSTALLCONF} vimpagerrc ${DESTDIR}${SYSCONFDIR}/vimpagerrc
man: vimpager.1
vimpager.1: vimpager.md
pandoc -s -w man vimpager.md -o vimpager.1
dos2unix vimpager.1
README: vimpager.md
pandoc -s -w plain vimpager.md -o README
dos2unix README
.PHONY: all install uninstall man