aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e87d560..c82168c 100644
--- a/Makefile
+++ b/Makefile
@@ -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