~ubuntu-branches/ubuntu/quantal/haproxy/quantal

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Cornet
  • Date: 2008-06-04 19:21:56 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080604192156-3n72encce99pkwrh
Tags: 1.3.14.5-1
* New Upstream Version (Closes: #484221)
* Use debhelper 7, drop CDBS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
include /usr/share/cdbs/1/rules/debhelper.mk
4
 
include /usr/share/cdbs/1/class/makefile.mk
5
 
 
6
 
CFLAGS += -Wall $(COPTS) $(DEBUG)
7
 
DEB_MAKE_INVOKE = $(MAKE) -C $(DEB_BUILDDIR) TARGET=linux26 USE_PCRE=1 IGNOREGIT=true
8
 
 
9
 
install/haproxy::
 
3
build:
 
4
        dh build --until dh_auto_configure
 
5
        make PREFIX=/usr TARGET=linux26 USE_PCRE=1 IGNOREGIT=true
 
6
        dh build --after dh_auto_build
 
7
 
 
8
clean:
 
9
        dh clean
 
10
 
 
11
install: build
 
12
#       mkdir -p debian/haproxy/etc/haproxy
 
13
#       cp -r examples/errorfiles debian/haproxy/etc/haproxy/errors
 
14
#       rm debian/haproxy/etc/haproxy/errors/README
 
15
#       cp debian/haproxy.cfg debian/haproxy/etc/haproxy
 
16
#       mkdir -p debian/haproxy/usr/sbin
 
17
#       cp haproxy debian/haproxy/usr/sbin
 
18
 
 
19
binary-arch: install
 
20
        dh binary-arch --before dh_auto_install
 
21
        make DESTDIR=debian/haproxy PREFIX=/usr \
 
22
                MANDIR=/usr/share/man DOCDIR=/usr/share/doc/haproxy install
 
23
        cp README debian/haproxy/usr/share/doc/haproxy
10
24
        mkdir -p debian/haproxy/etc/haproxy
11
25
        cp -r examples/errorfiles debian/haproxy/etc/haproxy/errors
12
26
        rm debian/haproxy/etc/haproxy/errors/README
13
27
        cp debian/haproxy.cfg debian/haproxy/etc/haproxy
14
 
        mkdir -p debian/haproxy/usr/sbin
15
 
        cp haproxy debian/haproxy/usr/sbin
 
28
        dh binary-arch --after dh_auto_install
 
29
 
 
30
binary-indep: install
 
31
        dh binary-indep
 
32
 
 
33
binary: binary-arch binary-indep
16
34