Adding a makefile and config.mk for clean installation. - watch_mdbox - A script to check for changes in dovecot (m)dbox folders.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 4c240bf4ba7cd1935e3cb5b47f0fcba5e2226f40
(DIR) parent f0d6b9c0e6942427e636a5f527498496a9d223c0
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Sat, 26 Feb 2011 01:12:18 +0100
Adding a makefile and config.mk for clean installation.
Diffstat:
Makefile | 25 +++++++++++++++++++++++++
config.mk | 8 ++++++++
2 files changed, 33 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
@@ -0,0 +1,25 @@
+# watch_mdbox - watch a dbox for changes
+# See LICENSE file for copyright and license details.
+
+include config.mk
+
+dist:
+ @echo creating dist tarball
+ @mkdir -p watch_mdbox-${VERSION}
+ @cp -R LICENSE README.md Makefile config.mk bin \
+ home watch_mdbox-${VERSION}
+ @tar -cf watch_mdbox-${VERSION}.tar watch_mdbox-${VERSION}
+ @gzip watch_mdbox-${VERSION}.tar
+ @rm -rf watch_mdbox-${VERSION}
+
+install:
+ @echo installing watch_mdbox script to ${DESTDIR}${PREFIX}/bin
+ @cp bin/watch_mdbox ${DESTDIR}${PREFIX}/bin
+ @chmod 755 ${DESTDIR}${PREFIX}/bin/watch_mdbox
+ @echo See home/mswatchrc for an example how to use it in mswatch.
+
+uninstall:
+ @echo removing watch_mdbox script from ${DESTDIR}${PREFIX}/bin
+ @rm -f ${DESTDIR}${PREFIX}/bin/watch_mdbox
+
+.PHONY: dist install uninstall
(DIR) diff --git a/config.mk b/config.mk
@@ -0,0 +1,8 @@
+# watch_mdbox version
+VERSION = 1.0
+
+# Customize below to fit your system
+
+# paths
+PREFIX = /usr
+