source: emailtotracscript/trunk/Makefile.in @ 109

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

EmailtoTracScript?:

email2trac.py.in:

  • Changed some layout statements

configure, Makefile.in, configure.in:

  • Can set DEBUG value on command line; eg: DEBUG=1 ./configure default is: 0
  • Property svn:keywords set to Id
File size: 1.1 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 109 2006-09-29 07:27:12Z 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@
18DEBUG=@DEBUG@
19
20TRAC_SCRIPT_NAME=email2trac
21
22CC=@CC@
23INSTALL=./install-sh
24CFLAGS=-DMTA_USER=\"$(MTA_USER)\" -DTRAC_USER=\"$(TRAC_USER)\" -DTRAC_SCRIPT_NAME=\"$(TRAC_SCRIPT_NAME)\" -DTRAC_SCRIPT_PATH=\"$(EXEC_PREFIX)\" -DDEBUG=$(DEBUG)
25
26PYTHON_FILES=delete_spam.py email2trac.py
27WRAPPER_SRC=run_email2trac.c run_email2trac.h
28
29all: run_email2trac
30
31run_email2trac: $(WRAPPER_SRC) Makefile
32        $(CC) $(CFLAGS) -o $@ run_email2trac.c
33
34install: all
35        $(INSTALL) -d $(DESTDIR)$(EXEC_PREFIX)
36        $(INSTALL) -m 4111 -o root run_email2trac $(DESTDIR)$(EXEC_PREFIX)
37        for script in $(PYTHON_FILES) ; \
38        do \
39          name=`basename $$script '.py'` ;\
40          $(INSTALL) -m 755 -o root $$script  $(DESTDIR)$(EXEC_PREFIX)/$$name ;\
41        done
42
43clean:
44        rm run_email2trac
45
46distclean:
47        rm run_email2trac email2trac.py delete_spam.py config.log config.status Makefile
Note: See TracBrowser for help on using the repository browser.