aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-04 10:24:50 +0000
committermerakor <cem@ckyln.com>2020-05-04 10:24:50 +0000
commit40ceb8f388be5a3662ba53cf298b451ab4ec5c2a (patch)
tree8a9b0011a4beaa670f654acde3ee59d2ebbd64d8 /Makefile
parent0897228d01ff2aae1b9773f2a93d6f9942dd241b (diff)
downloadcpt-40ceb8f388be5a3662ba53cf298b451ab4ec5c2a.tar.gz
kiss-readlink: add 'readlink -f' replacement
FossilOrigin-Name: 9e79f1a481f6d703182f086417f76c41b67e5ac180b9c3c79029cb151a770ec8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index c82168c..634816b 100644
--- a/Makefile
+++ b/Makefile
@@ -4,21 +4,25 @@ MANPREFIX = ${PREFIX}/share/man
MAN1 = ${MANPREFIX}/man1
CC = cc
-all: kiss-stat
+all: kiss-stat kiss-readlink
kiss-stat:
${CC} -o kiss-stat bin/kiss-stat.c
+kiss-readlink:
+ ${CC} -o kiss-readlink bin/kiss-readlink.c
+
clean:
- rm -f kiss-stat
+ rm -f kiss-stat kiss-readlink
install: all
mkdir -p ${DESTDIR}${BINDIR}
- cp kiss ${DESTDIR}${BINDIR}/kiss
- chmod 755 ${DESTDIR}${BINDIR}/kiss
- cp kiss-stat ${DESTDIR}${BINDIR}/kiss-stat
- chmod 755 ${DESTDIR}${BINDIR}/kiss-stat
- for bin in contrib/* ; do cp $${bin} ${DESTDIR}${BINDIR}/$${bin##*/}; \
+ cp kiss kiss-stat kiss-readlink ${DESTDIR}${BINDIR}
+ chmod 755 ${DESTDIR}${BINDIR}/kiss \
+ ${DESTDIR}${BINDIR}/kiss-stat \
+ ${DESTDIR}${BINDIR}/kiss-readlink
+ for bin in contrib/* ; do \
+ cp $${bin} ${DESTDIR}${BINDIR}/$${bin##*/}; \
chmod 755 ${DESTDIR}${BINDIR}/$${bin##*/} ; done
mkdir -p ${DESTDIR}${MAN1}
@@ -29,6 +33,7 @@ install: all
uninstall:
rm -f ${DESTDIR}${BINDIR}/kiss
rm -f ${DESTDIR}${BINDIR}/kiss-stat
+ rm -f ${DESTDIR}${BINDIR}/kiss-readlink
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