source: emailtotracscript/trunk/Makefile.in @ 21

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

EmailtoTracScript?:

email2trac:

  • Added configure/configure.in, aclocal.m4 and configure Makefile.in
  • Removed Makefile
  • Fixed bug in email2trac.py
  • Property svn:keywords set to Id
File size: 974 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 21 2006-01-13 13:11:50Z bas $
7#
8# defaullt values are:
9#
10# MTA_USER "nobody"
11# TRAC_USER "www-data"
12# TRAC_SCRIPT_NAME "email2trac"
13#
14PREFIX=@prefix@
15INSTALL_BIN=$(PREFIX)/bin
16PYTHON_BIN=@PYTHON@
17
18CC=gcc
19DEBUG=0
20CFLAGS=-DMTA_USER=\"$(MTA_USER)\" -DTRAC_USER=\"$(TRAC_USER)\" -DTRAC_SCRIPT_NAME=\"$(TRAC_SCRIPT_NAME)\" -DTRAC_SCRIPT_PATH=\"$(INSTALL_BIN)\" -DDEBUG=$(DEBUG)
21
22PYTHON_FILES=delete_spam.py email2trac.py
23WRAPPER_SRC=run_email2trac.c run_email2trac.h
24
25all: run_email2trac
26
27run_email2trac: $(WRAPPER_SRC)
28        $(CC) $(CFLAGS) -o $@ run_email2trac.c
29
30install: all
31        install --mode=4700 --owner=root run_email2trac $(INSTALL_BIN)
32        for script in $(PYTHON_FILES) ; \
33        do \
34          name=`basename email2trac.py '.py'`
35          sed -e "s%^\#\!/usr/bin/python%\#\!$(PYTHON_BIN)%" $$script > $(INSTALL_BIN)/$$name ; \
36          chmod a+x $(INSTALL_BIN)/$$name ; \
37        done
38
39clean:
40        rm run_email2trac
Note: See TracBrowser for help on using the repository browser.