Added a Makefile with clean/install
[confparser-old] / Makefile
1 INSTALL_DIR=/opt/tuxeenet/mail-filter/
2
3 usage:
4         @echo 'make [clean|install]'
5
6 clean:
7         rm -f *.pyc
8
9 install:
10         @echo "Creating /opt/tuxeenet/mail-filter"
11         @mkdir -p /opt/tuxeenet/mail-filter
12         @echo "Copying mail.filter to ${INSTALL_DIR}"
13         @install -o root -g root -m 755 mail.filter ${INSTALL_DIR}
14         @for module in confparser basicparser basicvalidator; do\
15 echo "Copying $$module.py to ${INSTALL_DIR}"; \
16 install -o root -g root -m 644 "$$module.py" ${INSTALL_DIR};\
17 done