source: emailtotracscript/trunk/Makefile.in @ 22

Last change on this file since 22 was 22, checked in by bas, 17 years ago

EmailtoTracScript?:

Email2trac:

  • Deleted delete_spam.py, email2trac.py
  • Added delete_spam.py.in, email2trac.py.in
  • Added configure options for mta_user and trac_user
  • Check C-compiler
  • Property svn:keywords set to Id
File size: 897 bytes
Line 
1# Authors: Bas van der Vlies & Michel Jouvin
2# Date   : 13 Jan 2005
3# Desc.  : Simple Makefile
4#
5# SVN INFO:
6#      $Id: Makefile.in 22 2006-01-15 10:53:48Z bas $
7#
8# defaullt values are:
9#
10#
11PREFIX=@prefix@
12INSTALL_BIN=$(PREFIX)/bin
13PYTHON_BIN=@PYTHON@
14
15# User names
16#
17TRAC_USER=@trac_user@
18MTA_USER=@mta_user@
19
20CC=@CC@
21DEBUG=0
22CFLAGS=-DMTA_USER=\"$(MTA_USER)\" -DTRAC_USER=\"$(TRAC_USER)\" -DTRAC_SCRIPT_NAME=\"$(TRAC_SCRIPT_NAME)\" -DTRAC_SCRIPT_PATH=\"$(INSTALL_BIN)\" -DDEBUG=$(DEBUG)
23
24PYTHON_FILES=delete_spam.py email2trac.py
25WRAPPER_SRC=run_email2trac.c run_email2trac.h
26
27all: run_email2trac
28
29run_email2trac: $(WRAPPER_SRC)
30        $(CC) $(CFLAGS) -o $@ run_email2trac.c
31
32install: all
33        install --mode=4700 --owner=root run_email2trac $(INSTALL_BIN)
34        for script in $(PYTHON_FILES) ; \
35        do \
36          name=`basename $$script '.py'` ; \
37          install --mode=755 --owner=root $$script  $(INSTALL_BIN)/$$name
38        done
39
40clean:
41        rm run_email2trac
Note: See TracBrowser for help on using the repository browser.