source: emailtotracscript/0.9/Makefile @ 5

Last change on this file since 5 was 5, checked in by bas, 16 years ago

EmailtoTracScript?:

First release and import to track_hacks

File size: 860 bytes
Line 
1# email2trac Makefile
2
3MTA_USER=daemon
4TRAC_USER=apache
5TRAC_SCRIPT_NAME=email2trac.py
6INSTALL_DIR=/www/Web/servers/trac/site-config/scripts
7PYTHON_BIN=/usr/local/Python/pro/bin/python
8
9CC=cc
10DEBUG=0
11CFLAGS=-c99 -DMTA_USER=\"$(MTA_USER)\" -DTRAC_USER=\"$(TRAC_USER)\" -DTRAC_SCRIPT_NAME=\"$(TRAC_SCRIPT_NAME)\" -DTRAC_SCRIPT_PATH=\"$(INSTALL_DIR)\" -DDEBUG=$(DEBUG)
12
13PYTHON_FILES=delete_spam.py email2trac.py
14WRAPPER_SRC=run_email2trac.c run_email2trac.h
15
16all: run_email2trac
17
18run_email2trac: $(WRAPPER_SRC)
19        $(CC) $(CFLAGS) -o $@ run_email2trac.c
20
21install: all
22        cp run_email2trac $(INSTALL_DIR)
23        chmod u+s $(INSTALL_DIR)/run_email2trac
24        chown root $(INSTALL_DIR)/run_email2trac
25        for script in $(PYTHON_FILES) ; \
26        do \
27          sed -e "s%^\#\!/usr/bin/python%\#\!$(PYTHON_BIN)%" $$script > $(INSTALL_DIR)/$$script ; \
28          chmod a+x $(INSTALL_DIR)/$$script ; \
29        done
Note: See TracBrowser for help on using the repository browser.