aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-24 15:01:23 +0000
committermerakor <cem@ckyln.com>2020-05-24 15:01:23 +0000
commitf2a193c68e06df23f6c57e6f90aa7cad79421949 (patch)
tree9d1d0b97fc0d082fddf6ac583fc5b9928502c89b /Makefile
parent18fbe566712997441aeb81a7eaac0dcea569d33e (diff)
downloadcpt-f2a193c68e06df23f6c57e6f90aa7cad79421949.tar.gz
add docs
FossilOrigin-Name: 373987d3050854074cb0f9b6dd4b24c867214f3862ed6161f94799d5ac325d86
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 86dea6a..3ea8f76 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
PREFIX = /usr/local
BINDIR = ${PREFIX}/bin
+DOCDIR = ${PREFIX}/share/doc
+KISSDOC = ${DOCDIR}/kiss
MANPREFIX = ${PREFIX}/share/man
MAN1 = ${MANPREFIX}/man1
CC = cc
@@ -28,6 +30,9 @@ install: all
mkdir -p ${DESTDIR}${MAN1}
for man in man/*.1 ; do cp -f $${man} ${DESTDIR}${MAN1}/$${man##*/}; \
chmod 644 ${DESTDIR}${MAN1}/$${man##*/} ; done
+ mkdir -p ${DESTDIR}${KISSDOC}
+ for doc in doc/*; do cp -f $${doc} ${DESTDIR}${KISSDOC}/$${doc##*/}; \
+ chmod 644 ${DESTDIR}${KISSDOC}/$${doc##*/} ; done
uninstall:
@@ -37,6 +42,7 @@ uninstall:
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
+ rm -rf ${DESTDIR}${KISSDOC}
.PHONY: all install uninstall clean