~ubuntu-branches/ubuntu/dapper/renattach/dapper

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Mats Rynge
  • Date: 2004-12-29 20:52:50 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20041229205250-b3z2r3df8kteoel8
Tags: 1.2.2-1
* New upstream release (closes: #284698)
* Changed build-depends to include exim4 as an alternative to
  the virtual mail-transport-agent package

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
BINDIR=/${prefix}/usr/sbin
2
 
CONFDIR=/${prefix}/etc
3
 
CC=gcc
4
 
CFLAGS=-Wall -O2
5
 
 
6
 
renattach : renattach.o settings.o
7
 
        $(CC) $(CFLAGS) -o renattach renattach.o settings.o
8
 
 
9
 
clean:
10
 
        rm -f renattach
11
 
        rm -f *.o
12
 
 
13
 
install: renattach
14
 
        @if [ ! -r $(BINDIR) ] ; then mkdir -p $(BINDIR) ; fi
15
 
        @if [ ! -r $(CONFDIR) ] ; then mkdir -p $(CONFDIR) ; fi
16
 
        ./install.sh renattach $(BINDIR) -s -m 755
17
 
        @if [ -r $(CONFDIR)/renattach.conf ] ; \
18
 
                then echo "Not replacing existing .conf file" ; \
19
 
                else ./install.sh renattach.conf $(CONFDIR) -m 644 ; \
20
 
                echo "./install.sh renattach.conf $(CONFDIR) -m 644" ; fi
21
 
 
22
 
uninstall:
23
 
        rm -f $(BINDIR)/renattach
24
 
        rm -i $(CONFDIR)/renattach.conf
25