source: emailtotracscript/trunk/Makefile.in @ 60

Last change on this file since 60 was 49, checked in by bas, 18 years ago

EmailtoTracScript?:

Makefile.in, debian)

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