summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2014-07-18 23:38:32 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2014-07-18 23:38:32 +0200
commit94d2026cca60c62b73e4a569eb35c8cbdbaa0d97 (patch)
tree779559fcce0f0f4a70c89b9a494d41fe918f1621
parente806a9b14fc826ddd74d90f55a20a372d130ea48 (diff)
downloadsocklog-void-94d2026cca60c62b73e4a569eb35c8cbdbaa0d97.tar.gz
socklog-void-94d2026cca60c62b73e4a569eb35c8cbdbaa0d97.tar.xz
socklog-void-94d2026cca60c62b73e4a569eb35c8cbdbaa0d97.zip
add make install rule
-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