source: emailtotracscript/trunk/Makefile.in @ 24

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

EmailtoTracScript?:

email2trac:

  • we can now set the default poth for the config file with configure for email2trac.py
  • Added svn keywords for all the files
  • Updated the install doc
  • Property svn:keywords set to Id
File size: 998 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 24 2006-01-15 12:46:09Z bas $
7#
8#
9PREFIX=@prefix@
10EXEC_PREFIX=@exec_prefix@/bin
11PYTHON_BIN=@PYTHON@
12CONFIG=@sysconfdir@
13
14# User names
15#
16TRAC_USER=@trac_user@
17MTA_USER=@mta_user@
18
19CC=@CC@
20DEBUG=0
21CFLAGS=-DMTA_USER=\"$(MTA_USER)\" -DTRAC_USER=\"$(TRAC_USER)\" -DTRAC_SCRIPT_NAME=\"$(TRAC_SCRIPT_NAME)\" -DTRAC_SCRIPT_PATH=\"$(EXEC_PREFIX)\" -DDEBUG=$(DEBUG)
22
23PYTHON_FILES=delete_spam.py email2trac.py
24WRAPPER_SRC=run_email2trac.c run_email2trac.h
25
26all: run_email2trac
27
28run_email2trac: $(WRAPPER_SRC) Makefile
29        $(CC) $(CFLAGS) -o $@ run_email2trac.c
30
31install: all
32        install --mode=4700 --owner=root run_email2trac $(EXEC_PREFIX)
33        for script in $(PYTHON_FILES) ; \
34        do \
35          name=`basename $$script '.py'` ; \
36          install --mode=755 --owner=root $$script  $(EXEC_PREFIX)/$$name
37        done
38
39clean:
40        rm run_email2trac
41
42distclean:
43        rm run_email2trac email2trac.py delete_spam.py config.log config.status Makefile
Note: See TracBrowser for help on using the repository browser.