blob: e87d5604fb6d43cb539a1a8f3c560672b5370cd0 (
plain)
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
|
PREFIX = /usr/local
BINDIR = ${PREFIX}/bin
MANPREFIX = ${PREFIX}/share/man
MAN1 = ${MANPREFIX}/man1
install:
mkdir -p ${DESTDIR}${BINDIR}
cp kiss ${DESTDIR}${BINDIR}/kiss
chmod 755 ${DESTDIR}${BINDIR}/kiss
for bin in contrib/* ; do cp $${bin} ${DESTDIR}${BINDIR}/$${bin##*/}; \
chmod 755 ${DESTDIR}${BINDIR}/$${bin##*/} ; done
mkdir -p ${DESTDIR}${MAN1}
for man in man/*.1 ; do cp $${man} ${DESTDIR}${MAN1}/$${man##*/}; \
chmod 644 ${DESTDIR}${MAN1}/$${man##*/} ; done
uninstall:
rm -f ${DESTDIR}${BINDIR}/kiss
for bin in contrib/* ; do rm -f ${DESTDIR}${BINDIR}/$${bin##*/} ; done
rm -f ${DESTDIR}${MAN1}/kiss.1 ${DESTDIR}${MAN1}/kiss.1
rm -f ${DESTDIR}${MAN1}/kiss-contrib.1 ${DESTDIR}${MAN1}/kiss-contrib.1
.PHONY: install uninstall
|