aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-07-24 09:08:48 +0000
committermerakor <cem@ckyln.com>2020-07-24 09:08:48 +0000
commit453a27cc1b956246c9639555268631abf0687e40 (patch)
tree0a81d2c38545fbad1961f754211f2d2ce9247da8
parent48b69beda9d38ea8d4211a9f8e037dc1851cc5f9 (diff)
downloadcpt-453a27cc1b956246c9639555268631abf0687e40.tar.gz
Makefile: adapt to the latest changes
FossilOrigin-Name: 5a433e996c1c3501c51e3aebe0d1911fa697e183ff7827178d7544421dda435a
-rw-r--r--Makefile33
-rw-r--r--config.mk2
2 files changed, 13 insertions, 22 deletions
diff --git a/Makefile b/Makefile
index 29c575c..fa0c1c6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
# See LICENSE for copyright information
include config.mk
-SRC = bin/kiss-readlink.c bin/kiss-stat.c
+SRC = bin/cpt-readlink.c bin/cpt-stat.c
OBJ = ${SRC:.c=.o}
BIN = ${SRC:.c=}
@@ -17,30 +17,21 @@ clean:
rm -f ${BIN} ${OBJ}
install: all
- mkdir -p ${DESTDIR}${BINDIR}
- cp -f kiss ${BIN} ${DESTDIR}${BINDIR}
- chmod 755 ${DESTDIR}${BINDIR}/kiss
- for bin in ${BIN}; do chmod 755 ${DESTDIR}${BINDIR}/$${bin##*/}; done
- for bin in contrib/* ; do \
- cp -f $${bin} ${DESTDIR}${BINDIR}/$${bin##*/}; \
- chmod 755 ${DESTDIR}${BINDIR}/$${bin##*/} ; done
- 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
-
+ install -Dm755 ${DESTDIR}${BINDIR}/cpt-lib lib.sh
+ install -Dm755 ${DESTDIR}${BINDIR}/cpt cpt
+ for bin in tools/* ${BIN} contrib/*; do \
+ install -Dm755 ${DESTDIR}${BINDIR}/$${bin##*/} $${bin}; done
+ for man in man/*.1; do install -Dm644 ${DESTDIR}${MAN1}/$${man##*/} $${man}; done
+ for doc in doc/*; do install -Dm644 ${DESTDIR}${CPTDOC}/$${doc##*/} $${doc}; done
uninstall:
- rm -f ${DESTDIR}${BINDIR}/kiss
- rm -f ${DESTDIR}${BINDIR}/kiss-stat
- rm -f ${DESTDIR}${BINDIR}/kiss-readlink
- for bin in ${BIN}; do rm -f ${DESTDIR}${BINDIR}/$${bin##*/}; done
- for bin in contrib/*; do rm -f ${DESTDIR}${BINDIR}/$${bin##*/}; done
+ rm -f ${DESTDIR}${BINDIR}/cpt \
+ ${DESTDIR}${BINDIR}/cpt-lib
+ for bin in ${BIN} tools/* 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}
+ rm -rf ${DESTDIR}${CPTDOC}
.PHONY: all install uninstall clean
diff --git a/config.mk b/config.mk
index 316594b..4f1744e 100644
--- a/config.mk
+++ b/config.mk
@@ -5,7 +5,7 @@ PREFIX = /usr/local
BINDIR = ${PREFIX}/bin
SHAREDIR = ${PREFIX}/share
DOCDIR = ${SHAREDIR}/doc
-KISSDOC = ${DOCDIR}/kiss
+CPTDOC = ${DOCDIR}/cpt
MANPREFIX = ${SHAREDIR}/man
MAN1 = ${MANPREFIX}/man1