diff options
author | merakor <cem@ckyln.com> | 2020-05-03 16:27:46 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-05-03 16:27:46 +0000 |
commit | 212cc3329fb37b02867a0efc33dc9ae6e8b731c2 (patch) | |
tree | 8a1f13cce6aa795444ea4331751f4fa87884d8ee /Makefile | |
parent | 08a64b4ed7409014e848fde529905b906f86b3cd (diff) | |
download | cpt-212cc3329fb37b02867a0efc33dc9ae6e8b731c2.tar.gz |
kiss: use our own version of stat for portability purposes.
FossilOrigin-Name: 44c082a4672f3de9f932cd7262e2d8b4cba2fc590750db9b1fefc38673910045
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -2,11 +2,22 @@ PREFIX = /usr/local BINDIR = ${PREFIX}/bin MANPREFIX = ${PREFIX}/share/man MAN1 = ${MANPREFIX}/man1 +CC = cc -install: +all: kiss-stat + +kiss-stat: + ${CC} -o kiss-stat bin/kiss-stat.c + +clean: + rm -f kiss-stat + +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##*/}; \ chmod 755 ${DESTDIR}${BINDIR}/$${bin##*/} ; done @@ -17,9 +28,10 @@ install: uninstall: rm -f ${DESTDIR}${BINDIR}/kiss + rm -f ${DESTDIR}${BINDIR}/kiss-stat 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 +.PHONY: all install uninstall clean |