source: emailtotracscript/trunk/Makefile.in @ 156

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

EmailtoTracScript?:

Makefile.in:

  • Added install_conf stanza
  • Property svn:keywords set to Id
File size: 1.3 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 144 2006-12-06 13:32:47Z 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@
[109]18DEBUG=@DEBUG@
[22]19
[35]20TRAC_SCRIPT_NAME=email2trac
21
[22]22CC=@CC@
[95]23INSTALL=./install-sh
[24]24CFLAGS=-DMTA_USER=\"$(MTA_USER)\" -DTRAC_USER=\"$(TRAC_USER)\" -DTRAC_SCRIPT_NAME=\"$(TRAC_SCRIPT_NAME)\" -DTRAC_SCRIPT_PATH=\"$(EXEC_PREFIX)\" -DDEBUG=$(DEBUG)
[21]25
26PYTHON_FILES=delete_spam.py email2trac.py
27WRAPPER_SRC=run_email2trac.c run_email2trac.h
28
29all: run_email2trac
30
[24]31run_email2trac: $(WRAPPER_SRC) Makefile
[21]32        $(CC) $(CFLAGS) -o $@ run_email2trac.c
33
[144]34install: all install-conf
[95]35        $(INSTALL) -d $(DESTDIR)$(EXEC_PREFIX)
36        $(INSTALL) -m 4111 -o root run_email2trac $(DESTDIR)$(EXEC_PREFIX)
[21]37        for script in $(PYTHON_FILES) ; \
38        do \
[32]39          name=`basename $$script '.py'` ;\
[95]40          $(INSTALL) -m 755 -o root $$script  $(DESTDIR)$(EXEC_PREFIX)/$$name ;\
[21]41        done
42
[144]43install-conf:
44        if [ ! -f  $(DESTDIR)/$(CONFIG)/email2trac.conf ] ; \
45        then \
46                $(INSTALL) -c -m 644 -o root email2trac.conf $(DESTDIR)/$(CONFIG)/email2trac.conf ;\
47        fi
48 
[21]49clean:
[24]50        rm run_email2trac
51
52distclean:
53        rm run_email2trac email2trac.py delete_spam.py config.log config.status Makefile
Note: See TracBrowser for help on using the repository browser.