Added a Makefile with clean/install
authorFrederic Jolliton <frederic@jolliton.com>
Sun, 31 Oct 2004 04:38:57 +0000 (04:38 +0000)
committerFrederic Jolliton <frederic@jolliton.com>
Sun, 31 Oct 2004 04:38:57 +0000 (04:38 +0000)
git-archimport-id: frederic@jolliton.com--2004-private/mail-filter--main--0.1--patch-5

Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..03ab928
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+INSTALL_DIR=/opt/tuxeenet/mail-filter/
+
+usage:
+       @echo 'make [clean|install]'
+
+clean:
+       rm -f *.pyc
+
+install:
+       @echo "Creating /opt/tuxeenet/mail-filter"
+       @mkdir -p /opt/tuxeenet/mail-filter
+       @echo "Copying mail.filter to ${INSTALL_DIR}"
+       @install -o root -g root -m 755 mail.filter ${INSTALL_DIR}
+       @for module in confparser basicparser basicvalidator; do\
+echo "Copying $$module.py to ${INSTALL_DIR}"; \
+install -o root -g root -m 644 "$$module.py" ${INSTALL_DIR};\
+done