summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 22f7ba5..3ae7574 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,11 @@
 all: nanoklogd
 
+install: all
+	install -Dm755 nanoklogd ${DESTDIR}/usr/bin/nanoklogd
+	install -Dm755 svlogtail ${DESTDIR}/usr/bin/svlogtail
+	mkdir -p ${DESTDIR}/etc ${DESTDIR}/var/log
+	cp -a sv ${DESTDIR}/etc
+	cp -a socklog ${DESTDIR}/var/log
+
 clean:
 	rm -f nanoklogd