source: emailtotracscript/trunk/Makefile.in @ 35

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

EmailtoTracScript?:

email2trac:

  • Define TRAC_SCRIPT_NAME in Makefile.in
  • Improved run_email2trac.c and made it working.
  • Property svn:keywords set to Id
File size: 1.0 KB
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 35 2006-01-20 20:35:04Z 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
19TRAC_SCRIPT_NAME=email2trac
20
21CC=@CC@
22DEBUG=0
23CFLAGS=-DMTA_USER=\"$(MTA_USER)\" -DTRAC_USER=\"$(TRAC_USER)\" -DTRAC_SCRIPT_NAME=\"$(TRAC_SCRIPT_NAME)\" -DTRAC_SCRIPT_PATH=\"$(EXEC_PREFIX)\" -DDEBUG=$(DEBUG)
24
25PYTHON_FILES=delete_spam.py email2trac.py
26WRAPPER_SRC=run_email2trac.c run_email2trac.h
27
28all: run_email2trac
29
30run_email2trac: $(WRAPPER_SRC) Makefile
31        $(CC) $(CFLAGS) -o $@ run_email2trac.c
32
33install: all
34        install --mode=4111 --owner=root run_email2trac $(EXEC_PREFIX)
35        for script in $(PYTHON_FILES) ; \
36        do \
37          name=`basename $$script '.py'` ;\
38          install --mode=755 --owner=root $$script  $(EXEC_PREFIX)/$$name ;\
39        done
40
41clean:
42        rm run_email2trac
43
44distclean:
45        rm run_email2trac email2trac.py delete_spam.py config.log config.status Makefile
Note: See TracBrowser for help on using the repository browser.